Re: [PATCH] option: add device ID

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

 



On Tue, May 20, 2014 at 04:27:40PM +0200, oneukum@xxxxxxx wrote:
> From: Oliver Neukum <oneukum@xxxxxxx>
> 
> Reported by Alif Mubarak Ahmad:
> 
> This device vendor and product id is 1c9e:9800
> It is working as serial interface with generic usbserial driver.
> I thought it is more suitable to use usbserial option driver, which has better capability distinguishing between modem serial interface and micro sd storage interface.
> 
> Signed-off-by: Oliver Neukum <oneukum@xxxxxxx>
> Tested-by: Alif Mubarak Ahmad <alive4ever@xxxxxxxx>

Applied after fixing up the minor style issues pointed out earlier.

Thanks,
Johan

> ---
>  drivers/usb/serial/option.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index f213ee9..5853fdf 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -351,6 +351,9 @@ static void option_instat_callback(struct urb *urb);
>  /* Zoom */
>  #define ZOOM_PRODUCT_4597			0x9607
>  
> +/* SU9800 usb 3g modem*/
> +#define SU9800_PRODUCT				0x9800
> +
>  /* Haier products */
>  #define HAIER_VENDOR_ID				0x201e
>  #define HAIER_PRODUCT_CE100			0x2009
> @@ -1575,6 +1578,7 @@ static const struct usb_device_id option_ids[] = {
>  	{ USB_DEVICE(LONGCHEER_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_W14),
>    	  .driver_info = (kernel_ulong_t)&four_g_w14_blacklist
>    	},
> +	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, SU9800_PRODUCT, 0xff) },
>  	{ USB_DEVICE(LONGCHEER_VENDOR_ID, ZOOM_PRODUCT_4597) },
>  	{ USB_DEVICE(LONGCHEER_VENDOR_ID, IBALL_3_5G_CONNECT) },
>  	{ USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE100) },
--
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