]> 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)
commit9be8aae12c2ded993477b81ada8e258c276a2642
treead2c98f91e1ce5c97e55932ec56b33ec2402b7c4
parent2467ad2f08fd839798966ea1bbf0dd4f3557b303
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