USB: serial: option: add D-Link DWM-222 device ID
Subsystems (6)
PATCH 1/1 USB: serial: option: add D-Link DWM-222 device ID
Add device id for D-Link DWM-222.
--- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/serial/option.c +2 -0
@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e36, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Signature · 1 line
2.17.1
PATCH 1/1 USB: serial: option: add D-Link DWM-222 device ID [version 2]
Add device id for D-Link DWM-222.
---
Apologies, a typo crept in when submitting this previously.
drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/serial/option.c +2 -0
@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Signature · 1 line
2.17.1
Johan Hovold
maintainerRe: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
Quoted 6 lines · Rogan Dawes
Add device id for D-Link DWM-222.
Signed-off-by Rogan Dawes <[email protected]>---
Apologies, a typo crept in when submitting this previously.
Thanks for the patch, all looks good, but next time add the version information inside the "[PATCH v2]" prefix so that it doesn't end up the commit logs.
Would you mind posting also the output of usb-devices (or lsusb -v) for this device for completeness? The former is compact enough to be included in the commit message.
No need to resend unless you prefer to. I'll apply this one after the merge window closes.
Thanks,
Johan
Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
I have a gist with all of the relevant information here:
https://gist.github.com/RoganDawes/afcc0aa1d12b53b540afc94ffc8e4494
lsusb -v is at:
Or:
After binding the Option driver, lsusb -v -d 2001:7e3d
Bus 001 Device 062: ID 2001:7e3d D-Link Corp. Mobile Connect Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.01
bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x2001 D-Link Corp. idProduct 0x7e3d bcdDevice 2.28 iManufacturer 1 Mobile Connect iProduct 2 Mobile Connect iSerial 3 0123456789ABCDEF bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x00e8
bNumInterfaces 6
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 4 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x8a EP 10 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x000c
bNumDeviceCaps 1
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
HIRD Link Power Management (LPM) Supported
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
Quoted 22 lines · Johan Hovold
Quoted 6 lines · Rogan Dawes
Add device id for D-Link DWM-222.
Signed-off-by Rogan Dawes <[email protected]>---
Apologies, a typo crept in when submitting this previously.Thanks for the patch, all looks good, but next time add the version information inside the "[PATCH v2]" prefix so that it doesn't end up the commit logs.
Would you mind posting also the output of usb-devices (or lsusb -v) for this device for completeness? The former is compact enough to be included in the commit message.
No need to resend unless you prefer to. I'll apply this one after the merge window closes.
Thanks,
Johan
Johan Hovold
maintainerRe: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
Quoted 266 lines · Rogan Dawes
After binding the Option driver, lsusb -v -d 2001:7e3d
Bus 001 Device 062: ID 2001:7e3d D-Link Corp. Mobile Connect Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.01bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x2001 D-Link Corp. idProduct 0x7e3d bcdDevice 2.28 iManufacturer 1 Mobile Connect iProduct 2 Mobile Connect iSerial 3 0123456789ABCDEF bNumConfigurations 1Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength0x00e8
bNumInterfaces 6
bConfigurationValue 1
iConfiguration 0
bmAttributes0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x81EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x01EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x83EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize0x000a1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x82EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x02EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x85EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize0x000a1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x84EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x03EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x87EP 7 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize0x000a1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x86EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x04EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x89EP 9 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize0x00081x 8 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x88EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x05EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 4 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x8aEP 10 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x06EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength0x000c
bNumDeviceCaps 1
USB 2.0 Extension Device Capability:
Quoted 8 lines
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes0x00000002
HIRD Link Power Management (LPM) Supported
can't get debug descriptor: Resource temporarily unavailable
Device Status:0x0000
(Bus Powered)
Ok, thanks. Do you have any idea what all those vendor interface are for? Some of the other D-Link entries blacklist a speech and debug port for example.
We can always do that later if we need to, but perhaps you or someone already know (also adding Lars and Dan on CC).
Johan
Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
On 7/16/2019 18:17, Johan Hovold wrote:
snip
Quoted 9 lines
Ok, thanks. Do you have any idea what all those vendor interface are for? Some of the other D-Link entries blacklist a speech and debug port for example.
We can always do that later if we need to, but perhaps you or someone already know (also adding Lars and Dan on CC).
Johan
This is the interface composition:
MI_00 D-Link HS-USB DiagnosticsMI_01 D-Link HS-USB ModemMI_02 D-Link HS-USB AT PortMI_03 D-Link HS-USB NMEAMI_04 D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05 USB Mass Storage Device
rgds
/Lars
Johan Hovold
maintainerRe: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
Quoted 14 lines · Lars Melin
On 7/16/2019 18:17, Johan Hovold wrote:
snip
Quoted 9 lines
Ok, thanks. Do you have any idea what all those vendor interface are for? Some of the other D-Link entries blacklist a speech and debug port for example.
We can always do that later if we need to, but perhaps you or someone already know (also adding Lars and Dan on CC).
Johan
Quoted 8 lines
This is the interface composition:
MI_00D-Link HS-USB DiagnosticsMI_01D-Link HS-USB ModemMI_02D-Link HS-USB AT PortMI_03D-Link HS-USB NMEAMI_04D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05USB Mass Storage Device
Thanks, Lars.
Then interface 0 and 4 should be blacklisted, right?
Rogan, would you mind doing that in a v3? You can include above composition details in the commit message as well.
Thanks,
Johan
Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
I have no idea how to do that, I'm afraid.
I'm mostly a cargo cult C-programmer :-) I can copy and paste, but that's about it!
Quoted 34 lines · Johan Hovold
Quoted 14 lines · Lars Melin
On 7/16/2019 18:17, Johan Hovold wrote:
snip
Quoted 9 lines
Ok, thanks. Do you have any idea what all those vendor interface are for? Some of the other D-Link entries blacklist a speech and debug port for example.
We can always do that later if we need to, but perhaps you or someone already know (also adding Lars and Dan on CC).
Johan
Quoted 8 lines
This is the interface composition:
MI_00D-Link HS-USB DiagnosticsMI_01D-Link HS-USB ModemMI_02D-Link HS-USB AT PortMI_03D-Link HS-USB NMEAMI_04D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05USB Mass Storage DeviceThanks, Lars.
Then interface 0 and 4 should be blacklisted, right?
Rogan, would you mind doing that in a v3? You can include above composition details in the commit message as well.
Thanks,
Johan
Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]
Quoted 5 lines · Rogan Dawes
I have no idea how to do that, I'm afraid.
I'm mostly a cargo cult C-programmer :-) I can copy and paste, but that's about it!
That said, I think that I have already blacklisted interface 4, as it was also blacklisted in the DWM-222 A1 hardware.
Rogan
PATCH v4 1/1 USB: serial: option: add D-Link DWM-222 device ID
Add device id for D-Link DWM-222.
---
Added the reserved interface 0, as suggested by Johan and Lars.
drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/serial/option.c +2 -0
@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(0) | RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Signature · 1 line
2.17.1
PATCH v5 1/1 USB: serial/qmi_wwan: add D-Link DWM-222 device ID
Add device id for D-Link DWM-222.
---
Also add the qmi_wwan entry, since it was blacklisted already in option
Apologies for the spam!
drivers/net/usb/qmi_wwan.c | 1 + drivers/usb/serial/option.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/net/usb/qmi_wwan.c +1 -0
@@ -1292,6 +1292,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x2001, 0x7e16, 3)}, /* D-Link DWM-221 */ {QMI_FIXED_INTF(0x2001, 0x7e19, 4)}, /* D-Link DWM-221 B1 */ {QMI_FIXED_INTF(0x2001, 0x7e35, 4)}, /* D-Link DWM-222 */ + {QMI_FIXED_INTF(0x2001, 0x7e3d, 4)}, /* D-Link DWM-222 A2 */ {QMI_FIXED_INTF(0x2020, 0x2031, 4)}, /* Olicard 600 */ {QMI_FIXED_INTF(0x2020, 0x2033, 4)}, /* BroadMobi BM806U */ {QMI_FIXED_INTF(0x0f3d, 0x68a2, 8)}, /* Sierra Wireless MC7700 */
drivers/usb/serial/option.c +2 -0
@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(0) | RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Signature · 1 line
2.17.1
Greg KH
maintainerRe: [PATCH v5] USB: serial/qmi_wwan: add D-Link DWM-222 device ID
Quoted 7 lines · Rogan Dawes
Add device id for D-Link DWM-222.
---
Also add theqmi_wwanentry, since it was blacklisted already in optionApologies for the spam!
You need a signed-off-by line :(
Johan Hovold
maintainerRe: [PATCH v5] USB: serial/qmi_wwan: add D-Link DWM-222 device ID
In reply to Rogan DawesQuoted 7 lines · Rogan Dawes
Add device id for D-Link DWM-222.
---
Also add theqmi_wwanentry, since it was blacklisted already in optionApologies for the spam!
No worries, you're getting there. :)
Quoted 3 lines
drivers/net/usb/qmi_wwan.c | 1 + drivers/usb/serial/option.c | 2 ++ 2 files changed, 3 insertions(+)
But please split this up in two patches and run get_maintainer.pl on each. The qmi_wwan one will go through the network tree.
Also include the interface layout that Lars provided in the USB serial commit message.
And don't forget the SoB line as Greg pointed out.
Thanks,
Johan
Re: [PATCH v5] USB: serial/qmi_wwan: add D-Link DWM-222 device ID
In reply to Rogan DawesQuoted 29 lines · Rogan Dawes
Add device id for D-Link DWM-222.
---
Also add theqmi_wwanentry, since it was blacklisted already in optionApologies for the spam!
drivers/net/usb/qmi_wwan.c | 1 + drivers/usb/serial/option.c | 2 ++ 2 files changed, 3 insertions(+)drivers/net/usb/qmi_wwan.c +1
-0@@ -1292,6 +1292,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x2001, 0x7e16, 3)}, /* D-Link DWM-221 */ {QMI_FIXED_INTF(0x2001, 0x7e19, 4)}, /* D-Link DWM-221 B1 */ {QMI_FIXED_INTF(0x2001, 0x7e35, 4)}, /* D-Link DWM-222 */ + {QMI_FIXED_INTF(0x2001, 0x7e3d, 4)}, /* D-Link DWM-222 A2 */ {QMI_FIXED_INTF(0x2020, 0x2031, 4)}, /* Olicard 600 */ {QMI_FIXED_INTF(0x2020, 0x2033, 4)}, /* BroadMobi BM806U */ {QMI_FIXED_INTF(0x0f3d, 0x68a2, 8)}, /* Sierra Wireless MC7700 */drivers/usb/serial/option.c +0
-0
drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 1955
Quoted 5 lines
drivers/usb/serial/option.c +2
-0@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(0) | RSVD(4) },
I don't think we actually do need to blacklist interface 0, since that's likely a QCDM/DIAG interface and that does need a serial driver like option or qcserial.
Johan, any reason why you thought we should blacklist 0?
Dan
Quoted 3 lines
drivers/usb/serial/option.c +0
-0{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Johan Hovold
maintainerRe: [PATCH v5] USB: serial/qmi_wwan: add D-Link DWM-222 device ID
Quoted 14 lines · Dan Williams
drivers/usb/serial/option.c static const struct usb_device_id option_ids[] = { · line 1955
Quoted 8 lines · Rogan Dawes
Add device id for D-Link DWM-222.
drivers/usb/serial/option.c +2
-0@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(0) | RSVD(4) },I don't think we actually do need to blacklist interface 0, since that's likely a QCDM/DIAG interface and that does need a serial driver like option or qcserial.
Quoted 1 line
Johan, any reason why you thought we should blacklist 0?
It was just me being confused about the Qualcomm protocols and how the diag port was accessed from user space. Thanks, Dan.
Rogan, let's keep interface 0 and only blacklist interface 4 as you did originally. Sorry about the confusion.
Johan
PATCH v6 1/1 USB: serial: option: add D-Link DWM-222 device ID
In reply to Rogan DawesAdd device id for D-Link DWM-222 A2.
MI_00 D-Link HS-USB DiagnosticsMI_01 D-Link HS-USB ModemMI_02 D-Link HS-USB AT PortMI_03 D-Link HS-USB NMEAMI_04 D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05 USB Mass Storage Device
--- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/serial/option.c +2 -0
@@ -1951,6 +1951,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e3d, 0xff), /* D-Link DWM-222 A2 */ + .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */
Signature · 1 line
2.17.1
PATCH 1/1 usb: qmi_wwan: add D-Link DWM-222 A2 device ID
--- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/usb/qmi_wwan.c +1 -0
@@ -1292,6 +1292,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x2001, 0x7e16, 3)}, /* D-Link DWM-221 */ {QMI_FIXED_INTF(0x2001, 0x7e19, 4)}, /* D-Link DWM-221 B1 */ {QMI_FIXED_INTF(0x2001, 0x7e35, 4)}, /* D-Link DWM-222 */ + {QMI_FIXED_INTF(0x2001, 0x7e3d, 4)}, /* D-Link DWM-222 A2 */ {QMI_FIXED_INTF(0x2020, 0x2031, 4)}, /* Olicard 600 */ {QMI_FIXED_INTF(0x2020, 0x2033, 4)}, /* BroadMobi BM806U */ {QMI_FIXED_INTF(0x0f3d, 0x68a2, 8)}, /* Sierra Wireless MC7700 */
Signature · 1 line
2.17.1
Re: [PATCH] usb: qmi_wwan: add D-Link DWM-222 A2 device ID
From: Rogan Dawes <[email protected]>
Date: Wed, 17 Jul 2019 11:14:33 +0200
Quoted 1 line
Signed-off-by Rogan Dawes <[email protected]>
Applied.
Johan Hovold
maintainerQuoted 11 lines · Rogan Dawes
Add device id for D-Link DWM-222 A2.
MI_00D-Link HS-USB DiagnosticsMI_01D-Link HS-USB ModemMI_02D-Link HS-USB AT PortMI_03D-Link HS-USB NMEAMI_04D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05USB Mass Storage DeviceSigned-off-by Rogan Dawes <[email protected]>
Perfect, thanks for sticking with it.
I'll queue this is up after the merge window closes.
Johan
Thank you for all the hand holding ...
Quoted 19 lines · Johan Hovold
Quoted 11 lines · Rogan Dawes
Add device id for D-Link DWM-222 A2.
MI_00D-Link HS-USB DiagnosticsMI_01D-Link HS-USB ModemMI_02D-Link HS-USB AT PortMI_03D-Link HS-USB NMEAMI_04D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05USB Mass Storage DeviceSigned-off-by Rogan Dawes <[email protected]>Perfect, thanks for sticking with it.
I'll queue this is up after the merge window closes.
Johan
Johan Hovold
maintainerQuoted 11 lines · Rogan Dawes
Add device id for D-Link DWM-222 A2.
MI_00D-Link HS-USB DiagnosticsMI_01D-Link HS-USB ModemMI_02D-Link HS-USB AT PortMI_03D-Link HS-USB NMEAMI_04D-Link HS-USB WWAN Adapter (qmi_wwan)MI_05USB Mass Storage DeviceSigned-off-by Rogan Dawes <[email protected]>
Now applied, thanks.
Johan