linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB: serial: option: set driver_info for SIM5218 and compatibles
@ 2019-02-26 17:07 Mans Rullgard
  2019-02-27  8:33 ` Johan Hovold
  0 siblings, 1 reply; 17+ messages in thread
From: Mans Rullgard @ 2019-02-26 17:07 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel

The SIMCom SIM5218 and compatible devices have 5 USB interfaces, only 4
of which are serial ports.  The fifth is a network interface supported
by the qmi-wwan driver.  Furthermore, the serial ports do not support
modem control signals.  Add driver_info flags to reflect this.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/usb/serial/option.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index fb544340888b..af4cbfecc3ff 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1066,7 +1066,8 @@ static const struct usb_device_id option_ids[] = {
 	  .driver_info = RSVD(3) },
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
-	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000)}, /* SIMCom SIM5218 */
+	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
+	  .driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
 	/* Quectel products using Qualcomm vendor ID */
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-03-19 17:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 17:07 [PATCH] USB: serial: option: set driver_info for SIM5218 and compatibles Mans Rullgard
2019-02-27  8:33 ` Johan Hovold
2019-02-27 11:57   ` Måns Rullgård
2019-02-27 13:13     ` Johan Hovold
2019-02-27 14:32       ` Måns Rullgård
2019-03-18 14:32         ` Måns Rullgård
2019-03-19 10:28         ` Johan Hovold
2019-03-19 10:54           ` Måns Rullgård
2019-03-19 11:08             ` Johan Hovold
2019-03-19 12:25               ` Måns Rullgård
2019-03-19 12:27                 ` Johan Hovold
2019-03-19 12:43                   ` Johan Hovold
2019-03-19 14:30                     ` Dan Williams
2019-03-19 14:35                       ` Måns Rullgård
2019-03-19 14:59                         ` Bjørn Mork
2019-03-19 16:26                           ` Måns Rullgård
2019-03-19 17:15                             ` Bjørn Mork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).