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)
commit1fc4c84d49558ceca04761abd3f7eb5224af75b2
treead2c98f91e1ce5c97e55932ec56b33ec2402b7c4
parent06efce71166b222b6715c73700f5e9b228d68999
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