]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/5.0.6/usb-serial-option-set-driver_info-for-sim5218-and-compatibles.patch
Linux 5.0.6
[thirdparty/kernel/stable-queue.git] / releases / 5.0.6 / usb-serial-option-set-driver_info-for-sim5218-and-compatibles.patch
CommitLineData
fc08f4e8
GKH
1From f8df5c2c3e2df5ffaf9fb5503da93d477a8c7db4 Mon Sep 17 00:00:00 2001
2From: Mans Rullgard <mans@mansr.com>
3Date: Tue, 26 Feb 2019 17:07:10 +0000
4Subject: USB: serial: option: set driver_info for SIM5218 and compatibles
5
6From: Mans Rullgard <mans@mansr.com>
7
8commit f8df5c2c3e2df5ffaf9fb5503da93d477a8c7db4 upstream.
9
10The SIMCom SIM5218 and compatible devices have 5 USB interfaces, only 4
11of which are serial ports. The fifth is a network interface supported
12by the qmi-wwan driver. Furthermore, the serial ports do not support
13modem control signals. Add driver_info flags to reflect this.
14
15Signed-off-by: Mans Rullgard <mans@mansr.com>
16Fixes: ec0cd94d881c ("usb: option: add SIMCom SIM5218")
17Cc: stable <stable@vger.kernel.org> # 3.2
18Signed-off-by: Johan Hovold <johan@kernel.org>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21---
22 drivers/usb/serial/option.c | 3 ++-
23 1 file changed, 2 insertions(+), 1 deletion(-)
24
25--- a/drivers/usb/serial/option.c
26+++ b/drivers/usb/serial/option.c
27@@ -1066,7 +1066,8 @@ static const struct usb_device_id option
28 .driver_info = RSVD(3) },
29 { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */
30 { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
31- { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000)}, /* SIMCom SIM5218 */
32+ { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
33+ .driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
34 /* Quectel products using Qualcomm vendor ID */
35 { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
36 { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),