Skip to contentSkip to conversation

USB: serial: option: add two Longcheer device ids

PATCH In review Johan Hovold 2 participants 3 messages Jun 12, 2017 – Jun 14, 2017

Subsystems (3)
lore
Share & tools
lore

Johan Hovold

author maintainer
#0 lore raw

PATCH v2 1/1 USB: serial: option: add two Longcheer device ids

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

---
 drivers/usb/serial/option.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/usb/serial/option.c +4 -0
index 3bf61acfc26b..ebe51f11105d 100644
@@ -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) },
Signature · 1 line
2.13.1
#1 lore raw
Quoted 9 lines · 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.

---
 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!

Quoted 15 lines
drivers/usb/serial/option.c +4 -0
index 3bf61acfc26b..ebe51f11105d 100644
@@ -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) },
author maintainer
#2 lore raw
Quoted 12 lines · Teemu Likonen
Quoted 9 lines · 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.

---
 drivers/usb/serial/option.c | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 2 lines

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