]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.9.49/usb-serial-option-add-support-for-d-link-dwm-157-c1.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.49 / usb-serial-option-add-support-for-d-link-dwm-157-c1.patch
1 From 169e86546f5712179709de23cd64bbb15f199fab Mon Sep 17 00:00:00 2001
2 From: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
3 Date: Tue, 29 Aug 2017 21:50:03 +0200
4 Subject: USB: serial: option: add support for D-Link DWM-157 C1
5
6 From: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
7
8 commit 169e86546f5712179709de23cd64bbb15f199fab upstream.
9
10 This commit adds support (an ID, really) for D-Link DWM-157 hardware
11 version C1 USB modem to option driver.
12
13 According to manufacturer-provided Windows INF file the device has four
14 serial ports:
15 "D-Link HSPA+DataCard Diagnostics Interface" (interface 2; modem port),
16 "D-Link HSPA+DataCard NMEA Device" (interface 3),
17 "D-Link HSPA+DataCard Speech Port" (interface 4),
18 "D-Link HSPA+DataCard Debug Port" (interface 5).
19
20 usb-devices output:
21 T: Bus=05 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
22 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
23 P: Vendor=2001 ProdID=7d0e Rev=03.00
24 S: Manufacturer=D-Link,Inc
25 S: Product=D-Link DWM-157
26 C: #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
27 I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
28 I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
29 I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
30 I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
31 I: If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
32 I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
33 I: If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
34
35 Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
36 Signed-off-by: Johan Hovold <johan@kernel.org>
37 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38
39 ---
40 drivers/usb/serial/option.c | 1 +
41 1 file changed, 1 insertion(+)
42
43 --- a/drivers/usb/serial/option.c
44 +++ b/drivers/usb/serial/option.c
45 @@ -2023,6 +2023,7 @@ static const struct usb_device_id option
46 { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x02, 0x01) },
47 { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) },
48 { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d04, 0xff) }, /* D-Link DWM-158 */
49 + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d0e, 0xff) }, /* D-Link DWM-157 C1 */
50 { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e19, 0xff), /* D-Link DWM-221 B1 */
51 .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
52 { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */