diff options
author | Meng Zhang <meng.zhang@mediatek.com> | 2012-02-27 02:24:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-28 13:53:09 -0500 |
commit | 0d8520a1d7f43328bc7085d4244d93c595064157 (patch) | |
tree | 71d6ba63d230c0eb9ecd6649a83e2f3d1eb46b97 /drivers/usb/serial/option.c | |
parent | 79857e8e7b1ba740f8025b540f1e171c9a0a5d31 (diff) |
USB: option: Add MediaTek MT6276M modem&app interfaces
Add MEDIATEK products to Option driver
Signed-off-by: Meng Zhang <meng.zhang@mediatek.com>
Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r-- | drivers/usb/serial/option.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 138a7b98cda4..ab5047944d1d 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -484,6 +484,9 @@ static void option_instat_callback(struct urb *urb); | |||
484 | #define LG_VENDOR_ID 0x1004 | 484 | #define LG_VENDOR_ID 0x1004 |
485 | #define LG_PRODUCT_L02C 0x618f | 485 | #define LG_PRODUCT_L02C 0x618f |
486 | 486 | ||
487 | /* MediaTek products */ | ||
488 | #define MEDIATEK_VENDOR_ID 0x0e8d | ||
489 | |||
487 | /* some devices interfaces need special handling due to a number of reasons */ | 490 | /* some devices interfaces need special handling due to a number of reasons */ |
488 | enum option_blacklist_reason { | 491 | enum option_blacklist_reason { |
489 | OPTION_BLACKLIST_NONE = 0, | 492 | OPTION_BLACKLIST_NONE = 0, |
@@ -1198,6 +1201,10 @@ static const struct usb_device_id option_ids[] = { | |||
1198 | { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) }, | 1201 | { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) }, |
1199 | { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) }, | 1202 | { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) }, |
1200 | { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */ | 1203 | { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */ |
1204 | { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x00, 0x00) }, | ||
1205 | { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x02, 0x01) }, | ||
1206 | { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x00, 0x00) }, | ||
1207 | { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x02, 0x01) }, /* MediaTek MT6276M modem & app port */ | ||
1201 | { } /* Terminating entry */ | 1208 | { } /* Terminating entry */ |
1202 | }; | 1209 | }; |
1203 | MODULE_DEVICE_TABLE(usb, option_ids); | 1210 | MODULE_DEVICE_TABLE(usb, option_ids); |