Skip to contentSkip to conversation

USB: option: Add MediaTek MT6276M modem&app interfaces

PATCH New Meng Zhang 1 participant 1 message Feb 27, 2012

Subsystems (2)
lore
Share & tools
lore

Meng Zhang

author
#0 lore raw

PATCH 1/1 USB: option: Add MediaTek MT6276M modem&app interfaces

from: Meng Zhang <[email protected]>

1. To declare the product IDs in option.c
2. Please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
to get these changes

---------------------------------------------------------------------------------------

drivers/usb/serial/option.c | 7 +++++++

1 files changed, 7 insertions(+), 0 deletions(-)
drivers/usb/serial/option.c +3 -0
index b54afce..7069f9d 100644
@@ -484,6 +484,9 @@ static void option_instat_callback(struct urb *urb);
 #define LG_VENDOR_ID                           0x1004
 #define LG_PRODUCT_L02C                                0x618f
 
+/* MediaTek products */
+#define MEDIATEK_VENDOR_ID                     0x0e8d
+
 /* some devices interfaces need special handling due to a number of 

reasons */
enum option_blacklist_reason {
OPTION_BLACKLIST_NONE = 0,
@@ -1198,6 +1201,10 @@ static const struct usb_device_id option_ids[] = {
{ USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID,
VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },

        { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 
0xff, 0xff, 0xff) },
        { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C 
modem */
+       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x00, 0x00) },
+       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x02, 0x01) },
+       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x00, 0x00) },
+       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x02, 0x01) },        /* MediaTek MT6276M modem & app port */

{ } /* Terminating entry */
};
MODULE_DEVICE_TABLE(usb, option_ids);