diff options
author | Andrew Bird (Sphere Systems) <ajb@spheresystems.co.uk> | 2012-05-19 18:28:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 16:58:38 -0400 |
commit | f7142e6c226076fd40c2ebaad9fb0c9a631b790e (patch) | |
tree | 6ad40589dadeff793a65eb1864226f65e85f1114 | |
parent | 8965c98fdebedce077257241957b205515dd1a5f (diff) |
USB: qmi_wwan: Add ZTE (Vodafone) K3520-Z
Signed-off-by: Andrew Bird <ajb@spheresystems.co.uk>
Acked-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index b3813684adc7..63cfd0b2c31a 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c | |||
@@ -356,6 +356,15 @@ static const struct driver_info qmi_wwan_gobi = { | |||
356 | }; | 356 | }; |
357 | 357 | ||
358 | /* ZTE suck at making USB descriptors */ | 358 | /* ZTE suck at making USB descriptors */ |
359 | static const struct driver_info qmi_wwan_force_int1 = { | ||
360 | .description = "Qualcomm WWAN/QMI device", | ||
361 | .flags = FLAG_WWAN, | ||
362 | .bind = qmi_wwan_bind_shared, | ||
363 | .unbind = qmi_wwan_unbind_shared, | ||
364 | .manage_power = qmi_wwan_manage_power, | ||
365 | .data = BIT(1), /* interface whitelist bitmap */ | ||
366 | }; | ||
367 | |||
359 | static const struct driver_info qmi_wwan_force_int4 = { | 368 | static const struct driver_info qmi_wwan_force_int4 = { |
360 | .description = "Qualcomm WWAN/QMI device", | 369 | .description = "Qualcomm WWAN/QMI device", |
361 | .flags = FLAG_WWAN, | 370 | .flags = FLAG_WWAN, |
@@ -438,6 +447,15 @@ static const struct usb_device_id products[] = { | |||
438 | .bInterfaceProtocol = 0xff, | 447 | .bInterfaceProtocol = 0xff, |
439 | .driver_info = (unsigned long)&qmi_wwan_force_int4, | 448 | .driver_info = (unsigned long)&qmi_wwan_force_int4, |
440 | }, | 449 | }, |
450 | { /* ZTE (Vodafone) K3520-Z */ | ||
451 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, | ||
452 | .idVendor = 0x19d2, | ||
453 | .idProduct = 0x0055, | ||
454 | .bInterfaceClass = 0xff, | ||
455 | .bInterfaceSubClass = 0xff, | ||
456 | .bInterfaceProtocol = 0xff, | ||
457 | .driver_info = (unsigned long)&qmi_wwan_force_int1, | ||
458 | }, | ||
441 | { /* ZTE (Vodafone) K3565-Z */ | 459 | { /* ZTE (Vodafone) K3565-Z */ |
442 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, | 460 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, |
443 | .idVendor = 0x19d2, | 461 | .idVendor = 0x19d2, |