qmi_wwan/cdc_ether: move Novatel 551 and E362 to qmi_wwan
Subsystems (5)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 qmi_wwan/cdc_ether: move Novatel 551 and E362 to qmi_wwan
These devices provide QMI and ethernet functionality via a standard CDC ethernet descriptor. But when driven by cdc_ether, the QMI functionality is unavailable because only cdc_ether can claim the USB interface. Thus blacklist the devices in cdc_ether and add their IDs to qmi_wwan, which enables both QMI and ethernet simultaneously.
---
Greg: CC-ed to linux-usb@ for visibility but should probably go through davem
drivers/net/usb/cdc_ether.c +26 -15
@@ -592,6 +592,32 @@ static const struct usb_device_id products [] = { .driver_info = 0, }, +/* Novatel USB551L and MC551 - handled by qmi_wwan */ +{ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR + |USB_DEVICE_ID_MATCH_PRODUCT + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = NOVATEL_VENDOR_ID, + .idProduct = 0xB001, + .bInterfaceClass = USB_CLASS_COMM, + .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, + .bInterfaceProtocol = USB_CDC_PROTO_NONE, + .driver_info = 0, +}, + +/* Novatel E362 - handled by qmi_wwan */ +{ + .match_flags =USB_DEVICE_ID_MATCH_VENDOR + |USB_DEVICE_ID_MATCH_PRODUCT + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = NOVATEL_VENDOR_ID, + .idProduct = 0x9010, + .bInterfaceClass = USB_CLASS_COMM, + .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, + .bInterfaceProtocol = USB_CDC_PROTO_NONE, + .driver_info = 0, +}, +/* * WHITELIST!!! *
@@ -604,21 +630,6 @@ static const struct usb_device_id products [] = {* because of bugs/quirks in a given product (like Zaurus, above). */ { -/* Novatel USB551L */ -/* This match must come *before* the generic CDC-ETHER match so that -* we get FLAG_WWAN set on the device, since it's descriptors are -* generic CDC-ETHER. -*/ - .match_flags = USB_DEVICE_ID_MATCH_VENDOR - |USB_DEVICE_ID_MATCH_PRODUCT - | USB_DEVICE_ID_MATCH_INT_INFO, - .idVendor = NOVATEL_VENDOR_ID, - .idProduct = 0xB001, - .bInterfaceClass = USB_CLASS_COMM, - .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, - .bInterfaceProtocol = USB_CDC_PROTO_NONE, - .driver_info = (unsigned long)&wwan_info, -}, {/* ZTE (Vodafone) K3805-Z */ .match_flags = USB_DEVICE_ID_MATCH_VENDOR |USB_DEVICE_ID_MATCH_PRODUCT
drivers/net/usb/qmi_wwan.c +14 -0
@@ -369,6 +369,20 @@ static const struct usb_device_id products[] = { USB_VENDOR_AND_INTERFACE_INFO(0x106c, USB_CLASS_VENDOR_SPEC, 0xf1, 0xff), .driver_info = (unsigned long )&qmi_wwan_info, }, + { /* Novatel USB551L and MC551 */ +USB_DEVICE_AND_INTERFACE_INFO (0x1410 ,0xb001 , +USB_CLASS_COMM , +USB_CDC_SUBCLASS_ETHERNET , +USB_CDC_PROTO_NONE ), + .driver_info = (unsigned long)&qmi_wwan_info, + }, + { /* Novatel E362 */ +USB_DEVICE_AND_INTERFACE_INFO (0x1410 ,0x9010 , +USB_CLASS_COMM , +USB_CDC_SUBCLASS_ETHERNET , +USB_CDC_PROTO_NONE ), + .driver_info = (unsigned long)&qmi_wwan_info, + }, /* 3. Combined interface devices matching on interface number */ {QMI_FIXED_INTF(0x19d2, 0x0002, 1)},
A message that is not in the archive (sent off-list or not yet received): [email protected]
Greg KH
Acked-byQuoted 10 lines · Dan Williams
These devices provide QMI and ethernet functionality via a standard CDC ethernet descriptor. But when driven by
cdc_ether, the QMI functionality is unavailable because onlycdc_ethercan claim the USB interface. Thus blacklist the devices incdc_etherand add their IDs toqmi_wwan, which enables both QMI and ethernet simultaneously.Signed-off-by Dan Williams <[email protected]>---
Greg: CC-ed to linux-usb@ for visibility but should probably go through davem
Yes, it should go through netdev:
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Bjørn Mork
Acked-byQuoted 5 lines · Dan Williams
These devices provide QMI and ethernet functionality via a standard CDC ethernet descriptor. But when driven by
cdc_ether, the QMI functionality is unavailable because onlycdc_ethercan claim the USB interface. Thus blacklist the devices incdc_etherand add their IDs toqmi_wwan, which enables both QMI and ethernet simultaneously.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Dan Williams <[email protected]>
Date: Wed, 24 Oct 2012 17:10:34 -0500
Quoted 7 lines
These devices provide QMI and ethernet functionality via a standard CDC ethernet descriptor. But when driven by
cdc_ether, the QMI functionality is unavailable because onlycdc_ethercan claim the USB interface. Thus blacklist the devices incdc_etherand add their IDs toqmi_wwan, which enables both QMI and ethernet simultaneously.Signed-off-by Dan Williams <[email protected]>
Applied, thanks.