UPSTREAM: net: qmi_wwan: adding Huawei E367, ZTE MF683 and Pantech P4200
authorBjørn Mork <bjorn@mork.no>
Wed, 19 Sep 2012 21:18:05 +0000 (21:18 +0000)
committerGerrit <chrome-bot@google.com>
Wed, 10 Oct 2012 19:15:59 +0000 (12:15 -0700)
commit98a5cc0de3c0f249fb54177c359207771ac18c8f
tree265030aa9eec42e91e7bb154baeed3b758b62d97
parent2db53ddc93f69de4ccee937595dfae4506de9b07
UPSTREAM: net: qmi_wwan: adding Huawei E367, ZTE MF683 and Pantech P4200

One of the modes of Huawei E367 has this QMI/wwan interface:

 I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=07 Driver=(none)
 E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
 E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
 E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

Huawei use subclass and protocol to identify vendor specific
functions, so adding a new vendor rule for this combination.

The Pantech devices UML290 (106c:3718) and P4200 (106c:3721) use
the same subclass to identify the QMI/wwan function.  Replace the
existing device specific UML290 entries with generic vendor matching,
adding support for the Pantech P4200.

The ZTE MF683 has 6 vendor specific interfaces, all using
ff/ff/ff for cls/sub/prot.  Adding a match on interface #5 which
is a QMI/wwan interface.

Cc: Fangxiaozhi (Franko) <fangxiaozhi@huawei.com>
Cc: Thomas Schäfer <tschaefer@t-online.de>
Cc: Dan Williams <dcbw@redhat.com>
Cc: Shawn J. Goff <shawn7400@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 42d94dcb68b939c72fded1b3974cd240723afa0c)

Change-Id: Iaac2eaefd103e2cd51d7069ae09eecc025875bc7
Signed-off-by: Ben Chan <benchan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35031
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/net/usb/qmi_wwan.c