]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.170/usb-serial-option-add-fibocom-nl678-series.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.4.170 / usb-serial-option-add-fibocom-nl678-series.patch
1 From 4b2c01ad902ec02fa962b233decd2f14be3714ba Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rgen=20Storvist?= <jorgen.storvist@gmail.com>
3 Date: Fri, 21 Dec 2018 14:40:44 +0100
4 Subject: USB: serial: option: add Fibocom NL678 series
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 4b2c01ad902ec02fa962b233decd2f14be3714ba upstream.
12
13 Added USB serial option driver support for Fibocom NL678 series cellular
14 module: VID 2cb7 and PIDs 0x0104 and 0x0105.
15 Reserved network and ADB interfaces.
16
17 T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
18 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
19 P: Vendor=2cb7 ProdID=0104 Rev=03.10
20 S: Manufacturer=Fibocom
21 S: Product=Fibocom NL678-E Modem
22 S: SerialNumber=12345678
23 C: #Ifs= 6 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= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
28 I: If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
29 I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
30
31 T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
32 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
33 P: Vendor=2cb7 ProdID=0105 Rev=03.10
34 S: Manufacturer=Fibocom
35 S: Product=Fibocom NL678-E Modem
36 S: SerialNumber=12345678
37 C: #Ifs= 7 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= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
42 I: If#= 4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
43 I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
44 I: If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
45
46 Signed-off-by: Jörgen Storvist <jorgen.storvist@gmail.com>
47 Cc: stable <stable@vger.kernel.org>
48 Acked-by: Johan Hovold <johan@kernel.org>
49 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
50
51 ---
52 drivers/usb/serial/option.c | 4 ++++
53 1 file changed, 4 insertions(+)
54
55 --- a/drivers/usb/serial/option.c
56 +++ b/drivers/usb/serial/option.c
57 @@ -1956,6 +1956,10 @@ static const struct usb_device_id option
58 { USB_DEVICE_AND_INTERFACE_INFO(0x03f0, 0xa31d, 0xff, 0x06, 0x1b) },
59 { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 */
60 .driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
61 + { USB_DEVICE(0x2cb7, 0x0104), /* Fibocom NL678 series */
62 + .driver_info = RSVD(4) | RSVD(5) },
63 + { USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x0105, 0xff), /* Fibocom NL678 series */
64 + .driver_info = RSVD(6) },
65 { } /* Terminating entry */
66 };
67 MODULE_DEVICE_TABLE(usb, option_ids);