UPSTREAM: USB: option: blacklist network interface on Huawei E173
authorBjørn Mork <bjorn@mork.no>
Sun, 25 Nov 2012 16:05:10 +0000 (17:05 +0100)
committerChromeBot <chrome-bot@google.com>
Fri, 10 May 2013 05:11:37 +0000 (22:11 -0700)
commit915d3f843a2539f14decb2a19eed235dab32d129
treeaffb64af681143a82573c9fcfd0603309af992d2
parentf84cf9ce2eb16570f121a3de016132e0bffe1942
UPSTREAM: USB: option: blacklist network interface on Huawei E173

The Huawei E173 will normally appear as 12d1:1436 in Linux.  But
the modem has another mode with different device ID and a slightly
different set of descriptors. This is the mode used by Windows like
this:

  3Modem:      USB\VID_12D1&PID_140C&MI_00\6&3A1D2012&0&0000
  Networkcard: USB\VID_12D1&PID_140C&MI_01\6&3A1D2012&0&0001
  Appli.Inter: USB\VID_12D1&PID_140C&MI_02\6&3A1D2012&0&0002
  PC UI Inter: USB\VID_12D1&PID_140C&MI_03\6&3A1D2012&0&0003

All interfaces have the same ff/ff/ff class codes in this mode.
Blacklisting the network interface to allow it to be picked up by
the network driver.

Cc: stable <stable@vger.kernel.org>
Reported-by: Thomas Schäfer <tschaefer@t-online.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f36446cf9bbebaa03a80d95cfeeafbaf68218249)

Change-Id: I539d5879c3004f1a22532337c84cce8b2f47a2a7
Signed-off-by: Ben Chan <benchan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50571
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/usb/serial/option.c