]> 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)
commit35971b252e7a20443c5cbe2ac64f22244da0801c
tree3fbea43d4ea36ecdd61aec298d393e829e33f596
parent8a1a0fe1453cf46315103f5b391b35f2eebfda67
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