All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] USB: serial: option: add two Longcheer device ids
@ 2017-06-12 14:30 Johan Hovold
  2017-06-12 15:14 ` Teemu Likonen
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Hovold @ 2017-06-12 14:30 UTC (permalink / raw)
  To: Teemu Likonen
  Cc: linux-usb, Dan Williams, Bjørn Mork, Lars Melin,
	Johan Hovold, stable

Add two Longcheer device-id entries which specifically enables the
Telewell TW-3G HSPA+ branded modem.

Reported-by: Teemu Likonen <tlikonen@iki.fi>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
---
 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 3bf61acfc26b..ebe51f11105d 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1877,6 +1877,10 @@ static const struct usb_device_id option_ids[] = {
 	  .driver_info = (kernel_ulong_t)&four_g_w100_blacklist
 	},
 	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, SPEEDUP_PRODUCT_SU9800, 0xff) },
+	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, 0x9801, 0xff),
+	  .driver_info = (kernel_ulong_t)&net_intf3_blacklist },
+	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, 0x9803, 0xff),
+	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
 	{ 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) },
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] USB: serial: option: add two Longcheer device ids
  2017-06-12 14:30 [PATCH v2] USB: serial: option: add two Longcheer device ids Johan Hovold
@ 2017-06-12 15:14 ` Teemu Likonen
  2017-06-14  7:26   ` Johan Hovold
  0 siblings, 1 reply; 3+ messages in thread
From: Teemu Likonen @ 2017-06-12 15:14 UTC (permalink / raw)
  To: Johan Hovold; +Cc: linux-usb, Dan Williams, Bjørn Mork, Lars Melin, stable

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

Johan Hovold [2017-06-12 16:30:16+02] wrote:

> Add two Longcheer device-id entries which specifically enables the
> Telewell TW-3G HSPA+ branded modem.
>
> Reported-by: Teemu Likonen <tlikonen@iki.fi>
> Cc: stable <stable@vger.kernel.org>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
>  drivers/usb/serial/option.c | 4 ++++
>  1 file changed, 4 insertions(+)

Tested on the mainline kernel v4.12-rc5 and works nicely. Thank you very
much!

> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index 3bf61acfc26b..ebe51f11105d 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -1877,6 +1877,10 @@ static const struct usb_device_id option_ids[] = {
>  	  .driver_info = (kernel_ulong_t)&four_g_w100_blacklist
>  	},
>  	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, SPEEDUP_PRODUCT_SU9800, 0xff) },
> +	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, 0x9801, 0xff),
> +	  .driver_info = (kernel_ulong_t)&net_intf3_blacklist },
> +	{ USB_DEVICE_INTERFACE_CLASS(LONGCHEER_VENDOR_ID, 0x9803, 0xff),
> +	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>  	{ 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) },

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] USB: serial: option: add two Longcheer device ids
  2017-06-12 15:14 ` Teemu Likonen
@ 2017-06-14  7:26   ` Johan Hovold
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2017-06-14  7:26 UTC (permalink / raw)
  To: Teemu Likonen
  Cc: Johan Hovold, linux-usb, Dan Williams, Bjørn Mork,
	Lars Melin, stable

On Mon, Jun 12, 2017 at 06:14:59PM +0300, Teemu Likonen wrote:
> Johan Hovold [2017-06-12 16:30:16+02] wrote:
> 
> > Add two Longcheer device-id entries which specifically enables the
> > Telewell TW-3G HSPA+ branded modem.
> >
> > Reported-by: Teemu Likonen <tlikonen@iki.fi>
> > Cc: stable <stable@vger.kernel.org>
> > Signed-off-by: Johan Hovold <johan@kernel.org>
> > ---
> >  drivers/usb/serial/option.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> 
> Tested on the mainline kernel v4.12-rc5 and works nicely. Thank you
> very much!

Thank you for testing. I've applied this one now and added the missing
Reported-by tags for Bj�rn and Lars.

Thanks everyone!

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-14  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 14:30 [PATCH v2] USB: serial: option: add two Longcheer device ids Johan Hovold
2017-06-12 15:14 ` Teemu Likonen
2017-06-14  7:26   ` Johan Hovold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.