Skip to content

Commit f7142e6

Browse files
andrewbirddavem330
authored andcommitted
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>
1 parent 8965c98 commit f7142e6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/net/usb/qmi_wwan.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ static const struct driver_info qmi_wwan_gobi = {
356356
};
357357

358358
/* 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+
359368
static const struct driver_info qmi_wwan_force_int4 = {
360369
.description = "Qualcomm WWAN/QMI device",
361370
.flags = FLAG_WWAN,
@@ -438,6 +447,15 @@ static const struct usb_device_id products[] = {
438447
.bInterfaceProtocol = 0xff,
439448
.driver_info = (unsigned long)&qmi_wwan_force_int4,
440449
},
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+
},
441459
{ /* ZTE (Vodafone) K3565-Z */
442460
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,
443461
.idVendor = 0x19d2,

0 commit comments

Comments
 (0)