diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0045-cdc_ether-add-Novatel-USB551L-device-IDs-for-FLAG_WW.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0045-cdc_ether-add-Novatel-USB551L-device-IDs-for-FLAG_WW.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0045-cdc_ether-add-Novatel-USB551L-device-IDs-for-FLAG_WW.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0045-cdc_ether-add-Novatel-USB551L-device-IDs-for-FLAG_WW.patch new file mode 100644 index 00000000..2310ee58 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0045-cdc_ether-add-Novatel-USB551L-device-IDs-for-FLAG_WW.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From 3a586ee50e3f8a380125a8ce332de9f4c0ef727e Mon Sep 17 00:00:00 2001 | ||
2 | From: Dan Williams <dcbw@redhat.com> | ||
3 | Date: Mon, 7 May 2012 04:24:51 +0000 | ||
4 | Subject: [PATCH 45/56] cdc_ether: add Novatel USB551L device IDs for | ||
5 | FLAG_WWAN | ||
6 | |||
7 | commit 4e6304b8420aba5311ba21fd68dab2924ae4d91a upstream. | ||
8 | |||
9 | Needs to be tagged with FLAG_WWAN, which since it has generic | ||
10 | descriptors, won't happen if we don't override the generic | ||
11 | driver info. | ||
12 | |||
13 | Cc: Oliver Neukum <oliver@neukum.org> | ||
14 | Signed-off-by: Dan Williams <dcbw@redhat.com> | ||
15 | Acked-by: Oliver Neukum <oliver@neukum.org> | ||
16 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
17 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
18 | --- | ||
19 | drivers/net/usb/cdc_ether.c | 16 ++++++++++++++++ | ||
20 | 1 files changed, 16 insertions(+), 0 deletions(-) | ||
21 | |||
22 | diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c | ||
23 | index eac4886..2ba40cf 100644 | ||
24 | --- a/drivers/net/usb/cdc_ether.c | ||
25 | +++ b/drivers/net/usb/cdc_ether.c | ||
26 | @@ -482,6 +482,7 @@ static const struct driver_info wwan_info = { | ||
27 | /*-------------------------------------------------------------------------*/ | ||
28 | |||
29 | #define HUAWEI_VENDOR_ID 0x12D1 | ||
30 | +#define NOVATEL_VENDOR_ID 0x1410 | ||
31 | |||
32 | static const struct usb_device_id products [] = { | ||
33 | /* | ||
34 | @@ -599,6 +600,21 @@ static const struct usb_device_id products [] = { | ||
35 | * because of bugs/quirks in a given product (like Zaurus, above). | ||
36 | */ | ||
37 | { | ||
38 | + /* Novatel USB551L */ | ||
39 | + /* This match must come *before* the generic CDC-ETHER match so that | ||
40 | + * we get FLAG_WWAN set on the device, since it's descriptors are | ||
41 | + * generic CDC-ETHER. | ||
42 | + */ | ||
43 | + .match_flags = USB_DEVICE_ID_MATCH_VENDOR | ||
44 | + | USB_DEVICE_ID_MATCH_PRODUCT | ||
45 | + | USB_DEVICE_ID_MATCH_INT_INFO, | ||
46 | + .idVendor = NOVATEL_VENDOR_ID, | ||
47 | + .idProduct = 0xB001, | ||
48 | + .bInterfaceClass = USB_CLASS_COMM, | ||
49 | + .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, | ||
50 | + .bInterfaceProtocol = USB_CDC_PROTO_NONE, | ||
51 | + .driver_info = (unsigned long)&wwan_info, | ||
52 | +}, { | ||
53 | USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ETHERNET, | ||
54 | USB_CDC_PROTO_NONE), | ||
55 | .driver_info = (unsigned long) &cdc_info, | ||
56 | -- | ||
57 | 1.7.7.6 | ||
58 | |||