Skip to content

Adding new drivers for Qualcomm MSM based LTE modems

Bjørn Mork netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 4 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cdc_ether: allow vendor specific data interface if control interface is vendor specificdrivers/net/usb/cdc_ether.c+5 -10 replies
2/3net: usb: cdc_enc: New driver exposing USB CDC encapsulated protocolsdrivers/net/usb/Kconfig drivers/net/usb/Makefile drivers/net/usb/cdc_enc.c +1 more+544 -04 replies
3/3net: usb: qmi_wwan: New driver for QMI WAN devicesdrivers/net/usb/Kconfig drivers/net/usb/Makefile drivers/net/usb/qmi_proto.c +2 more+932 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Adding new drivers for Qualcomm MSM based LTE modems

This can probably support many more devices based on modern Qualcomm chipsets, but has only been tested with a Huawei E392 LTE modem based on Qualcomm MDM9200.

These chips require using the QMI protocol to enable anything but serial mode. They can, and should, still be configured using AT commands on one of the serial interfaces. In particular, this driver does not support entering SIM PIN code or APN, which may be required before opening a connection. PIN can be set by using the standard AT+CPIN="xxxx" command. APN can most likely be set by storing it in the default profile.

patch 1 relaxes the cdc_ether CDC descriptor parsing in such a way that it will allow a vendor specific data interface if and only if the control interface also is vendor specific. This allows us to reuse the bind() function from cdc_ether for one of the possible device configurations we support

patch 2 adds a new "subdriver" which exports the CDC encapsulated command interface as a character device, and also to the calling driver.

patch 3 adds the wwan driver, which uses the "subdriver" to configure the device via the Qualcomm MSM Interface (QMI) protocol encapsulated in CDC control commands. The actual network device is a minimalistic usbnet minidriver.

Bjørn Mork (3):
cdc_ether: allow vendor specific data interface if control interface
is vendor specific
net: usb: cdc_enc: New driver exposing USB CDC encapsulated protocols
net: usb: qmi_wwan: New driver for QMI WAN devices

 drivers/net/usb/Kconfig         |   28 +++
 drivers/net/usb/Makefile        |    3 +
 drivers/net/usb/cdc_enc.c       |  452 +++++++++++++++++++++++++++++++++++++
 drivers/net/usb/cdc_enc.h       |   77 +++++++
 drivers/net/usb/cdc_ether.c     |    6 +-
 drivers/net/usb/qmi_proto.c     |  475 +++++++++++++++++++++++++++++++++++++++
 drivers/net/usb/qmi_proto.h     |   98 ++++++++
 drivers/net/usb/qmi_wwan_core.c |  343 ++++++++++++++++++++++++++++
 8 files changed, 1481 insertions(+), 1 deletions(-)
 create mode 100644 drivers/net/usb/cdc_enc.c
 create mode 100644 drivers/net/usb/cdc_enc.h
 create mode 100644 drivers/net/usb/qmi_proto.c
 create mode 100644 drivers/net/usb/qmi_proto.h
 create mode 100644 drivers/net/usb/qmi_wwan_core.c
Signature · 6 lines
1.7.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html