]> git.baikalelectronics.ru Git - kernel.git/commit
net: qmi_wwan: make dynamic device IDs work
authorBjørn Mork <bjorn@mork.no>
Tue, 17 Jul 2012 11:14:32 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2012 16:31:25 +0000 (09:31 -0700)
commitb97a9026684e7db9e4939ff470f0f225d1a042e0
tree3fbea43d4ea36ecdd61aec298d393e829e33f596
parentd0d9baa2468c631a3a4a2ca5ad755109d8d58370
net: qmi_wwan: make dynamic device IDs work

The usbnet API use the device ID table to store a pointer to
a minidriver. Setting a generic pointer for dynamic device
IDs will in most cases make them work as expected.  usbnet
will otherwise treat the dynamic IDs as blacklisted. That is
rarely useful.

There is no standard class describing devices supported by
this driver, and most vendors don't even provide enough
information to allow vendor specific wildcard matching. The
result is that most of the supported devices must be
explicitly listed in the device table.  Allowing dynamic IDs
to work both simplifies testing and verification of new
devices, and provides a way for end users to use a device
before the ID is added to the driver.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c