Commit 3f8bc5e4 authored by Dan Williams's avatar Dan Williams Committed by Greg Kroah-Hartman

qcserial: bind to DM/DIAG port on Gobi 1K devices

Turns out we just need altsetting 1 and then we can talk to it.
Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c0f5ecee
...@@ -197,12 +197,15 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) ...@@ -197,12 +197,15 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
if (is_gobi1k) { if (is_gobi1k) {
/* Gobi 1K USB layout: /* Gobi 1K USB layout:
* 0: serial port (doesn't respond) * 0: DM/DIAG (use libqcdm from ModemManager for communication)
* 1: serial port (doesn't respond) * 1: serial port (doesn't respond)
* 2: AT-capable modem port * 2: AT-capable modem port
* 3: QMI/net * 3: QMI/net
*/ */
if (ifnum == 2) if (ifnum == 0) {
dev_dbg(dev, "Gobi 1K DM/DIAG interface found\n");
altsetting = 1;
} else if (ifnum == 2)
dev_dbg(dev, "Modem port found\n"); dev_dbg(dev, "Modem port found\n");
else else
altsetting = -1; altsetting = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment