OSDN Git Service

USB: option: Removing one bogus and adding some new Huawei combinations
authorBjørn Mork <bjorn@mork.no>
Tue, 13 Dec 2011 04:33:02 +0000 (05:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:57:48 +0000 (12:57 -0800)
commit5dfcd4d5e36784b14071bbe5e42947d3e8bf1c69
tree18646f324e7258fe893a2f68e43ee5bb1f0efe7f
parent4c3f5007ad3aec88567774b5bbf933145ee42df8
USB: option: Removing one bogus and adding some new Huawei combinations

commit 02a551c9755b799579e0a093bcc99b80b4dc1453 upstream.

Huawei use the product code HUAWEI_PRODUCT_E353 (0x1506) for a
number of different devices, which each can appear with a number
of different descriptor sets.  Different types of interfaces
can be identified by looking at the subclass and protocol fields

Subclass 1 protocol 8 is actually the data interface of a CDC
ECM set, with subclass 1 protocol 9 as the control interface.
Neither support serial data communcation, and cannot therefore
be supported by this driver.

At the same time, add a few other sets which appear if the
device is configured in "Windows mode" using this modeswitch
message:
55534243000000000000000000000011060000000100000000000000000000

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c