diff mbox series

[1/2] USB: serial: option: add support for NetIndex UX302NC

Message ID 20220914025541.1018233-2-chris.packham@alliedtelesis.co.nz
State New
Headers show
Series USB: serial: option: add NetIndex UX302NC and docomo L-03F | expand

Commit Message

Chris Packham Sept. 14, 2022, 2:55 a.m. UTC
Add support for the following USB Modem

usb 1-1: new high-speed USB device number 3 using xhci-hcd
usb 1-1: New USB device found, idVendor=11f6, idProduct=1034
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: NCXX UX302NC
usb 1-1: Manufacturer: NCXX Inc.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 drivers/usb/serial/option.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index a5e8374a8d71..2065f0fb2fa0 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -580,6 +580,9 @@  static void option_instat_callback(struct urb *urb);
 #define OPPO_VENDOR_ID				0x22d9
 #define OPPO_PRODUCT_R11			0x276c
 
+/* NetIndex */
+#define NETINDEX_VENDOR_ID			0x11f6
+#define NETINDEX_PRODUCT_UX302NC		0x1034
 
 /* Device flags */
 
@@ -2170,6 +2173,7 @@  static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) },			/* GosunCn GM500 MBIM */
 	{ USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1406, 0xff) },			/* GosunCn GM500 ECM/NCM */
 	{ USB_DEVICE_AND_INTERFACE_INFO(OPPO_VENDOR_ID, OPPO_PRODUCT_R11, 0xff, 0xff, 0x30) },
+	{ USB_DEVICE(NETINDEX_VENDOR_ID, NETINDEX_PRODUCT_UX302NC) }, /* NCXX UX302NC */
 	{ } /* Terminating entry */
 };
 MODULE_DEVICE_TABLE(usb, option_ids);