* [PATCH net] net: qmi_wwan: add ZTE MF60
@ 2012-07-02 17:53 Bjørn Mork
2012-07-05 10:16 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Bjørn Mork @ 2012-07-02 17:53 UTC (permalink / raw)
To: netdev; +Cc: Bjørn Mork
Adding a device with limited QMI support. It does not support
normal QMI_WDS commands for connection management. Instead,
sending a QMI_CTL SET_INSTANCE_ID command is required to
enable the network interface:
01 0f 00 00 00 00 00 00 20 00 04 00 01 01 00 00
A number of QMI_DMS and QMI_NAS commands are also supported
for optional device management.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
drivers/net/usb/qmi_wwan.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index b01960f..5badafd 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -346,6 +346,15 @@ static const struct driver_info qmi_wwan_force_int1 = {
.data = BIT(1), /* interface whitelist bitmap */
};
+static const struct driver_info qmi_wwan_force_int2 = {
+ .description = "Qualcomm WWAN/QMI device",
+ .flags = FLAG_WWAN,
+ .bind = qmi_wwan_bind_shared,
+ .unbind = qmi_wwan_unbind_shared,
+ .manage_power = qmi_wwan_manage_power,
+ .data = BIT(2), /* interface whitelist bitmap */
+};
+
static const struct driver_info qmi_wwan_force_int3 = {
.description = "Qualcomm WWAN/QMI device",
.flags = FLAG_WWAN,
@@ -498,6 +507,15 @@ static const struct usb_device_id products[] = {
.bInterfaceProtocol = 0xff,
.driver_info = (unsigned long)&qmi_wwan_force_int4,
},
+ { /* ZTE MF60 */
+ .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,
+ .idVendor = 0x19d2,
+ .idProduct = 0x1402,
+ .bInterfaceClass = 0xff,
+ .bInterfaceSubClass = 0xff,
+ .bInterfaceProtocol = 0xff,
+ .driver_info = (unsigned long)&qmi_wwan_force_int2,
+ },
{ /* Sierra Wireless MC77xx in QMI mode */
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = 0x1199,
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net] net: qmi_wwan: add ZTE MF60
2012-07-02 17:53 [PATCH net] net: qmi_wwan: add ZTE MF60 Bjørn Mork
@ 2012-07-05 10:16 ` David Miller
2012-07-05 11:09 ` Bjørn Mork
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2012-07-05 10:16 UTC (permalink / raw)
To: bjorn; +Cc: netdev
From: Bjørn Mork <bjorn@mork.no>
Date: Mon, 2 Jul 2012 19:53:17 +0200
> +static const struct driver_info qmi_wwan_force_int2 = {
Please get rid of that strange tab character and resubmit.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net] net: qmi_wwan: add ZTE MF60
2012-07-05 10:16 ` David Miller
@ 2012-07-05 11:09 ` Bjørn Mork
0 siblings, 0 replies; 3+ messages in thread
From: Bjørn Mork @ 2012-07-05 11:09 UTC (permalink / raw)
To: David Miller; +Cc: netdev
David Miller <davem@davemloft.net> writes:
> From: Bjørn Mork <bjorn@mork.no>
> Date: Mon, 2 Jul 2012 19:53:17 +0200
>
>> +static const struct driver_info qmi_wwan_force_int2 = {
>
> Please get rid of that strange tab character and resubmit.
Sure. Will do.
Looks like a thoughtless copy-paste thing originally coming from
cdc_ether. Funny thing is that it has survived several incarnations
already, as this specific instance came from a copy-paste within the
same driver.
It's all checkpatch'es fault for not warning me :-)
Luckily all of these will go away when the whitelisting is removed
(i.e. when the USB interface number matching in 3.6 is available).
Bjørn
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-05 11:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 17:53 [PATCH net] net: qmi_wwan: add ZTE MF60 Bjørn Mork
2012-07-05 10:16 ` David Miller
2012-07-05 11:09 ` Bjørn Mork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox