]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ether: allow combined control and data interface
authorBjørn Mork <bjorn@mork.no>
Sat, 29 Jun 2013 10:03:06 +0000 (12:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 08:47:41 +0000 (01:47 -0700)
commitbdf11ce3b0a80340a925998dea4d1e713239a6e8
treead2c98f91e1ce5c97e55932ec56b33ec2402b7c4
parentf4a4263bc41a1829ae8a728c2127085759bb64e2
net: cdc_ether: allow combined control and data interface

Some Icera based Huawei modems handled by this driver are not
completely CDC ECM compliant, using the same USB interface for both
control and data. The CDC functional descriptors include a Union
naming this interface as both master and slave, so it is supportable
by relaxing the descriptor parsing in case these interfaces are
identical.

This has been tested on a Huawei K3806 and verified to add support
for that device.

Reported-and-tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ether.c