]> Pileus Git - ~andy/linux/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)
commit1817e83d6ccf992164dd83522b2d1c22b1a85977
tree3fbea43d4ea36ecdd61aec298d393e829e33f596
parenteeda8585522bcc173f91d6254dfa63e871087c54
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