netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Mork <bjorn@mork.no>
To: netdev@vger.kernel.org, linux-usb@vger.kernel.org
Cc: "Bjørn Mork" <bjorn@mork.no>
Subject: [PATCH 0/3] Adding a new driver for Huawei E392 WWAN modem
Date: Tue, 13 Dec 2011 05:33:01 +0100	[thread overview]
Message-ID: <1323750784-32608-1-git-send-email-bjorn@mork.no> (raw)

From: Bjørn Mork <bjorn@mork.no>

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 releases one of the interfaces used by this protocol from
the option driver. Note that this interface does not support serial
data anyway, so the option driver binding is completely bogus.

patch 2 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 3 adds the new driver.  Most of it is QMI protocol handling.
The network device is a minimalistic usbnet minidriver.



Bjørn Mork (3):
  option: Removing one bogus and adding some new Huawei combinations
  cdc_ether: allow vendor specific data interface if control interface
    is vendor specific
  qmi_wwan: Driver for WWAN devices requiring use of the QMI protocol

 drivers/net/usb/Kconfig         |   13 +
 drivers/net/usb/Makefile        |    2 +
 drivers/net/usb/cdc_ether.c     |    8 +-
 drivers/net/usb/qmi.c           |  730 +++++++++++++++++++++++++++++++++++++++
 drivers/net/usb/qmi.h           |  101 ++++++
 drivers/net/usb/qmi_wwan_core.c |  206 +++++++++++
 drivers/usb/serial/option.c     |    4 +-
 7 files changed, 1061 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/usb/qmi.c
 create mode 100644 drivers/net/usb/qmi.h
 create mode 100644 drivers/net/usb/qmi_wwan_core.c

-- 
1.7.7.3

             reply	other threads:[~2011-12-13  4:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13  4:33 Bjorn Mork [this message]
     [not found] ` <1323750784-32608-1-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2011-12-13  4:33   ` [PATCH 1/3] option: Removing one bogus and adding some new Huawei combinations Bjorn Mork
2011-12-13 17:16     ` Greg KH
2011-12-13  4:33   ` [PATCH 2/3] cdc_ether: allow vendor specific data interface if control interface is vendor specific Bjorn Mork
     [not found]     ` <1323750784-32608-3-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2011-12-13  4:54       ` Joe Perches
2011-12-13  4:59         ` Bjørn Mork
     [not found]           ` <87vcplcbj3.fsf-lbf33ChDnrE/G1V5fR+Y7Q@public.gmane.org>
2011-12-13 10:39             ` Sergei Shtylyov
2011-12-13  4:33   ` [PATCH 3/3] qmi_wwan: Driver for WWAN devices requiring use of the QMI protocol Bjorn Mork
     [not found]     ` <1323750784-32608-4-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2011-12-14 17:08       ` Dan Williams
     [not found]         ` <1323882501.2077.3.camel-wKZy7rqYPVb5EHUCmHmTqw@public.gmane.org>
2011-12-15 10:02           ` Bjørn Mork
2011-12-15 17:52             ` Dan Williams
     [not found]               ` <1323971530.23419.13.camel-wKZy7rqYPVb5EHUCmHmTqw@public.gmane.org>
2011-12-16 16:03                 ` Bjørn Mork
     [not found]                   ` <874nx0bj1d.fsf-lbf33ChDnrE/G1V5fR+Y7Q@public.gmane.org>
2011-12-16 17:17                     ` Dan Williams
     [not found]                       ` <1324055842.17587.18.camel-wKZy7rqYPVb5EHUCmHmTqw@public.gmane.org>
2012-01-04 20:57                         ` Dan Williams
2012-01-05  8:58                           ` Bjørn Mork
2011-12-13  9:02 ` [PATCH 0/3] Adding a new driver for Huawei E392 WWAN modem Bjørn Mork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1323750784-32608-1-git-send-email-bjorn@mork.no \
    --to=bjorn@mork.no \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).