]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.14/0001-USB-option-Add-MediaTek-MT6276M-modem-app-interfaces.patch
linux-ti335x-psp 3.2: update to 3.2.14
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.14 / 0001-USB-option-Add-MediaTek-MT6276M-modem-app-interfaces.patch
1 From cc33a57bd7f9104a9c2f77f11dc3e7f9c22b9340 Mon Sep 17 00:00:00 2001
2 From: Meng Zhang <meng.zhang@mediatek.com>
3 Date: Mon, 27 Feb 2012 08:24:19 +0100
4 Subject: [PATCH 001/147] USB: option: Add MediaTek MT6276M modem&app
5  interfaces
7 commit 0d8520a1d7f43328bc7085d4244d93c595064157 upstream.
9 Add MEDIATEK products to Option driver
11 Signed-off-by: Meng Zhang <meng.zhang@mediatek.com>
12 Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 ---
15  drivers/usb/serial/option.c |    7 +++++++
16  1 file changed, 7 insertions(+)
18 diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
19 index 68fa8c7..547c9b9 100644
20 --- a/drivers/usb/serial/option.c
21 +++ b/drivers/usb/serial/option.c
22 @@ -484,6 +484,9 @@ static void option_instat_callback(struct urb *urb);
23  #define LG_VENDOR_ID                           0x1004
24  #define LG_PRODUCT_L02C                                0x618f
25  
26 +/* MediaTek products */
27 +#define MEDIATEK_VENDOR_ID                     0x0e8d
28 +
29  /* some devices interfaces need special handling due to a number of reasons */
30  enum option_blacklist_reason {
31                 OPTION_BLACKLIST_NONE = 0,
32 @@ -1198,6 +1201,10 @@ static const struct usb_device_id option_ids[] = {
33         { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },
34         { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) },
35         { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */
36 +       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x00, 0x00) },
37 +       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x02, 0x01) },
38 +       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x00, 0x00) },
39 +       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x02, 0x01) },        /* MediaTek MT6276M modem & app port */
40         { } /* Terminating entry */
41  };
42  MODULE_DEVICE_TABLE(usb, option_ids);
43 -- 
44 1.7.9.4