Skip to contentSkip to conversation

USB: serial: option: add Wistron NeWeb M18QW support

PATCH In review U Michel 3 participants 4 messages Jan 25, 2025 – Feb 11, 2025

Subsystems (2)
lore
Share & tools
lore

U Michel

author
#0 lore raw

PATCH 2/2 USB: serial: option: add Wistron NeWeb M18QW support

From: U M <[email protected]>

Update the USB serial option driver to support Wistron NeWeb M18QW.

ID 1435:3185 WNC M18QW

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1435 ProdID=3185 Rev= 3.18
S:  Manufacturer=Android
S:  Product=Android
S:  SerialNumber=WNC_ADB
C:* #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=86(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=88(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Tested successfully connecting via picocom and submitting at commands

---
 drivers/usb/serial/option.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/option.c +1 -0
index 1e2ae0c6c41c..b166f1607b0e 100644
@@ -2285,6 +2285,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) },	/* D-Link DWM-156/A3 */
 	{ USB_DEVICE_INTERFACE_CLASS(0x1435, 0xd191, 0xff),			/* Wistron Neweb D19Q1 */
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */
 	{ USB_DEVICE_INTERFACE_CLASS(0x1690, 0x7588, 0xff),			/* ASKEY WWHC050 */
 	  .driver_info = RSVD(1) | RSVD(4) },
 	{ USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2031, 0xff),			/* Olicard 600 */
Signature · 1 line
2.34.1
#1 lore raw
Quoted 1 line · U Michel

From: U M <[email protected]>

We need a full name, sorry.

And where is patch 1/2 of this series?

Quoted 46 lines

Update the USB serial option driver to support Wistron NeWeb M18QW.

ID 1435:3185 WNC M18QW

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1435 ProdID=3185 Rev= 3.18
S:  Manufacturer=Android
S:  Product=Android
S:  SerialNumber=WNC_ADB
C:* #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=86(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=88(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Tested successfully connecting via picocom and submitting at commands

---
 drivers/usb/serial/option.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/option.c +0 -0
index 1e2ae0c6c41c..b166f1607b0e 100644

drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 2288

Quoted 4 lines
drivers/usb/serial/option.c +1 -0
@@ -2285,6 +2285,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) },	/* D-Link DWM-156/A3 */
 	{ USB_DEVICE_INTERFACE_CLASS(0x1435, 0xd191, 0xff),			/* Wistron Neweb D19Q1 */
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */

You forgot a tab before the comment :(

thanks,

greg k-h

author
#2 lore raw

Hello Greg,

Quoted 1 line

We need a full name, sorry.

the full name is Ulv Michel.

Quoted 1 line

And where is patch 1/2 of this series?

Part 1 is this: https://lore.kernel.org/linux-usb/2025012501-pediatric-abide-b802@gregkh/T/#t

Quoted 4 lines

drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 2288

Quoted 2 lines
drivers/usb/serial/option.c +1 -0
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */

You forgot a tab before the comment :(

:( I removed the tab because the checkpatch.pl complained the length of the line being more than 100 columns... What would be you suggestion? Resubmit? Or keep it?

Thanks,
Ulv

-----Ursprüngliche Nachricht-----
Von: Greg Kroah-Hartman <[email protected]>
Gesendet: Montag, 3. Februar 2025 16:17
An: Ulv Michel <[email protected]>
Cc: Johan Hovold <[email protected]>; [email protected]; [email protected]
Betreff: Re: [PATCH 2/2] USB: serial: option: add Wistron NeWeb M18QW support

Quoted 1 line · U Michel

From: U M <[email protected]>

We need a full name, sorry.

And where is patch 1/2 of this series?

Quoted 46 lines

Update the USB serial option driver to support Wistron NeWeb M18QW.

ID 1435:3185 WNC M18QW

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1435 ProdID=3185 Rev= 3.18
S:  Manufacturer=Android
S:  Product=Android
S:  SerialNumber=WNC_ADB
C:* #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=86(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=88(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Tested successfully connecting via picocom and submitting at commands

---
 drivers/usb/serial/option.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/option.c +0 -0
index 1e2ae0c6c41c..b166f1607b0e 100644

drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 2288

Quoted 4 lines
drivers/usb/serial/option.c +1 -0
@@ -2285,6 +2285,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) },	/* D-Link DWM-156/A3 */
 	{ USB_DEVICE_INTERFACE_CLASS(0x1435, 0xd191, 0xff),			/* Wistron Neweb D19Q1 */
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */

You forgot a tab before the comment :(

thanks,

greg k-h

maintainer
#3 lore raw
Quoted 8 lines · Ulv Michel

Hello Greg,

Quoted 1 line

We need a full name, sorry.

the full name is Ulv Michel.

Quoted 1 line

And where is patch 1/2 of this series?

Part 1 is this: https://lore.kernel.org/linux-usb/2025012501-pediatric-abide-b802@gregkh/T/#t

Looks like something went wrong with the threading when you submitted this series.

You can resend the patches individually if you prefer since they go through different trees anyway, but you should get your mail setup fixed for future contributions anyway.

Try sending it to yourself first.

Quoted 7 lines
Quoted 4 lines

drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 2288

Quoted 2 lines
drivers/usb/serial/option.c +1 -0
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */

You forgot a tab before the comment :(

:( I removed the tab because the checkpatch.pl complained the length of the line being more than 100 columns... What would be you suggestion? Resubmit? Or keep it?

It's ok with lines longer than 100 columns here in these tables.

Please submit a v2 with your full name in From and in the SoB tags as well.

One more comment below.

Quoted 19 lines

-----Ursprüngliche Nachricht-----
Von: Greg Kroah-Hartman <[email protected]>
Gesendet: Montag, 3. Februar 2025 16:17
An: Ulv Michel <[email protected]>
Cc: Johan Hovold <[email protected]>; [email protected]; [email protected]
Betreff: Re: [PATCH 2/2] USB: serial: option: add Wistron NeWeb M18QW support

Quoted 1 line · U Michel

From: U M <[email protected]>

We need a full name, sorry.

And where is patch 1/2 of this series?

Quoted 5 lines
---
 drivers/usb/serial/option.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 9 lines

drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 2288

Quoted 9 lines
drivers/usb/serial/option.c +1 -0
index 1e2ae0c6c41c..b166f1607b0e 100644
@@ -2285,6 +2285,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) },	/* D-Link DWM-156/A3 */
 	{ USB_DEVICE_INTERFACE_CLASS(0x1435, 0xd191, 0xff),			/* Wistron Neweb D19Q1 */
 	  .driver_info = RSVD(1) | RSVD(4) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1435, 0x3185, 0xff, 0x00, 0x00) },   /* Wistron Neweb M18QW */

And try to keep the entries sorted by VID/PID when possible (e.g. within this Wistron subsection).

Quoted 1 line

You forgot a tab before the comment :(

Johan