Re: Adding a new USB CDMA modem (Celot CT-650)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



06.08.2010 18:14, Greg KH wrote:
[]
>> Sure thing, but before I'd want to know how to add that
>> support properly (not how to format the patch :)
> 
> Well, a patch would be nice so that others can use the device :)

I'm fine with a patch, but I wanted to do it "properly" --
I'd not say that exposing the 2 extra/unknown interfaces
as serial interfaces is a proper way, some sort of "raw
device" is better.   But ok, here we go...

The attached patch is against for 2.6.35 kernel.  It'd
be nice to have all these VENDOR_IDs and usb device table
sorted somehow, instead of adding them at the end....

Signed-Off-By: Michael Tokarev <mjt@xxxxxxxxxx>

Thanks!

--- kernel-2.6.34/drivers/usb/serial/option.c.orig	2010-07-05 23:57:45.501593450 +0400
+++ kernel-2.6.34/drivers/usb/serial/option.c	2010-08-06 13:39:24.892077680 +0400
@@ -906,6 +906,11 @@
 	{ USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) },
 
 	{ USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) },
+
+#define CELOT_VENDOR_ID		0x211F
+#define CELOT_PRODUCT_CT680M	0x6801
+	{ USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) },
+
 	{ } /* Terminating entry */
 };
 MODULE_DEVICE_TABLE(usb, option_ids);

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux