]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.170/usb-serial-option-add-gosuncn-zte-welink-me3630.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.4.170 / usb-serial-option-add-gosuncn-zte-welink-me3630.patch
1 From 70a7444c550a75584ffcfae95267058817eff6a7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rgen=20Storvist?= <jorgen.storvist@gmail.com>
3 Date: Tue, 11 Dec 2018 18:28:28 +0100
4 Subject: USB: serial: option: add GosunCn ZTE WeLink ME3630
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 From: Jörgen Storvist <jorgen.storvist@gmail.com>
10
11 commit 70a7444c550a75584ffcfae95267058817eff6a7 upstream.
12
13 Added USB serial option driver support for GosunCn ZTE WeLink ME3630
14 series cellular modules for USB modes ECM/NCM and MBIM.
15
16 usb-devices output MBIM mode:
17 T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0
18 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
19 P: Vendor=19d2 ProdID=0602 Rev=03.18
20 S: Manufacturer=Android
21 S: Product=Android
22 S: SerialNumber=
23 C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
24 I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
25 I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
26 I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
27 I: If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
28 I: If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
29
30 usb-devices output ECM/NCM mode:
31 T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 11 Spd=480 MxCh= 0
32 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
33 P: Vendor=19d2 ProdID=1476 Rev=03.18
34 S: Manufacturer=Android
35 S: Product=Android
36 S: SerialNumber=
37 C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
38 I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
39 I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
40 I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
41 I: If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
42 I: If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
43
44 Signed-off-by: Jörgen Storvist <jorgen.storvist@gmail.com>
45 Cc: stable <stable@vger.kernel.org>
46 Signed-off-by: Johan Hovold <johan@kernel.org>
47 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48
49 ---
50 drivers/usb/serial/option.c | 2 ++
51 1 file changed, 2 insertions(+)
52
53 --- a/drivers/usb/serial/option.c
54 +++ b/drivers/usb/serial/option.c
55 @@ -1327,6 +1327,7 @@ static const struct usb_device_id option
56 .driver_info = RSVD(4) },
57 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0414, 0xff, 0xff, 0xff) },
58 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0417, 0xff, 0xff, 0xff) },
59 + { USB_DEVICE_INTERFACE_CLASS(ZTE_VENDOR_ID, 0x0602, 0xff) }, /* GosunCn ZTE WeLink ME3630 (MBIM mode) */
60 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1008, 0xff, 0xff, 0xff),
61 .driver_info = RSVD(4) },
62 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1010, 0xff, 0xff, 0xff),
63 @@ -1530,6 +1531,7 @@ static const struct usb_device_id option
64 .driver_info = RSVD(2) },
65 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1428, 0xff, 0xff, 0xff), /* Telewell TW-LTE 4G v2 */
66 .driver_info = RSVD(2) },
67 + { USB_DEVICE_INTERFACE_CLASS(ZTE_VENDOR_ID, 0x1476, 0xff) }, /* GosunCn ZTE WeLink ME3630 (ECM/NCM mode) */
68 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1533, 0xff, 0xff, 0xff) },
69 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1534, 0xff, 0xff, 0xff) },
70 { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1535, 0xff, 0xff, 0xff) },