linux/drivers/net/usb
Kristian Evensen e4bf63482c qmi_wwan: Add quirk for Quectel dynamic config
Most, if not all, Quectel devices use dynamic interface numbers, and
users are able to change the USB configuration at will. Matching on for
example interface number is therefore not possible.

Instead, the QMI device can be identified by looking at the interface
class, subclass and protocol (all 0xff), as well as the number of
endpoints. The reason we need to look at the number of endpoints, is
that the diagnostic port interface has the same class, subclass and
protocol as QMI. However, the diagnostic port only has two endpoints,
while QMI has three.

Until now, we have identified the QMI device by combining a match on
class, subclass and protocol, with a call to the function
quectel_diag_detect(). In quectel_diag_detect(), we check if the number
of endpoints matches for known Quectel vendor/product ids.

Adding new vendor/product ids to quectel_diag_detect() is not a good
long-term solution. This commit replaces the function with a quirk, and
applies the quirk to affected Quectel devices that I have been able to
test the change with (EP06, EM12 and EC25). If the quirk is set and the
number of endpoints equal two, we return from qmi_wwan_probe() with
-ENODEV.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Acked-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-08 16:25:56 -07:00
..
aqc111.c net: usb: aqc111: Extend HWID table by QNAP device 2019-03-26 11:19:42 -07:00
aqc111.h
asix_common.c
asix_devices.c net: usb: asix: ax88772_bind return error when hw_reset fail 2019-01-24 22:33:11 -08:00
asix.h
ax88172a.c
ax88179_178a.c
catc.c
cdc_eem.c
cdc_ether.c net: usb: aqc111: Extend HWID table by QNAP device 2019-03-26 11:19:42 -07:00
cdc_mbim.c ipv6: Move ipv6 stubs to a separate header file 2019-03-29 10:53:45 -07:00
cdc_ncm.c
cdc_subset.c
cdc-phonet.c net: usb: cdc-phonet: use struct_size() in alloc_netdev() 2019-02-08 22:57:27 -08:00
ch9200.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c
kaweth.c
Kconfig
lan78xx.c net: phy: fixed-phy: Drop GPIO from fixed_phy_add() 2019-02-04 18:33:36 -08:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c net: usb: pegasus: Mark expected switch fall-through 2019-02-08 11:54:06 -08:00
pegasus.h
plusb.c
qmi_wwan.c qmi_wwan: Add quirk for Quectel dynamic config 2019-04-08 16:25:56 -07:00
r8152.c r8152: Refresh MAC address during USBDEVFS_RESET 2019-04-06 18:21:46 -07:00
rndis_host.c
rtl8150.c net: usb: rtl8150: mark expected switch fall-through 2019-02-08 11:54:27 -08:00
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c drivers: net: Remove unnecessary semicolon 2019-03-01 23:13:49 -08:00
sr9700.h
sr9800.c
sr9800.h
usbnet.c
zaurus.c