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

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

 



On Fri, Aug 06, 2010 at 06:49:21PM +0400, Michael Tokarev wrote:
> 06.08.2010 18:36, Greg KH wrote:
> > On Fri, Aug 06, 2010 at 06:26:42PM +0400, Michael Tokarev wrote:
> >> 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....
> > 
> > Why, it doesn't speed up anything, and makes it easier to merge patches.
> 
> It does not make easier to merge patches, because when
> everyone is adding stuff to the end, they collide with
> 100% probability, but for a sufficiently large sorted
> list the probability is far less.

Not really, it makes it so that I know I get all of the patches needed
when backporting to the -stable kernel releases.  I can handle the easy
collisions when I do the merge here, that's not an issue.

> and now really against 2.6.35 as promised :)

> --- linux-2.6.34/drivers/usb/serial/option.c.orig	2010-08-02 02:11:14.000000000 +0400

This says .34 :)

> +++ linux-2.6.34/drivers/usb/serial/option.c	2010-08-06 18:22:28.520671967 +0400
> @@ -365,6 +365,14 @@
>  #define OLIVETTI_VENDOR_ID			0x0b3c
>  #define OLIVETTI_PRODUCT_OLICARD100		0xc000
>  
> +/* Celot products */
> +#define CELOT_VENDOR_ID				0x211f
> +/* CT-650 CD A 450 1xEVDO modem.
> + * This has 3 interfaces, one serial and 2 unknown.
> + * Expose all 3 for now
> + */

This comment is not needed.

> +#define CELOT_PRODUCT_CT680M			0x6801
> +
>  /* some devices interfaces need special handling due to a number of reasons */
>  enum option_blacklist_reason {
>  		OPTION_BLACKLIST_NONE = 0,
> @@ -889,6 +897,9 @@
>  	{ USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) },
>  
>  	{ USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) },
> +
> +	{ USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */

Especially as you say here what device it is.

Third time's a charm?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux