Add some 3G dongle
authorCMY <cmy@rock-chips.com>
Wed, 31 Aug 2011 02:55:09 +0000 (10:55 +0800)
committerCMY <cmy@rock-chips.com>
Wed, 31 Aug 2011 02:55:09 +0000 (10:55 +0800)
drivers/base/devices_filter.h
drivers/usb/serial/option.c

index 0a39257583ad9c27fa18b57b7391e65e632a9125..e53840a0f590f02fdb11848455b31b0355700103 100644 (file)
@@ -55,6 +55,8 @@ static usb_parameter skip_device_list[] = {
        
 // 山寨
 //     {0x05C6, -1, NULL, NULL, NULL},
+       {0x05C6, 0x1000, NULL, NULL, NULL},
+       {0x1AB7, 0x5700, NULL, NULL, NULL},
        {0x20B9, 0x1682, NULL, NULL, NULL},
 
        {0x028A, 0x1006, NULL, NULL, NULL},
@@ -71,19 +73,6 @@ static usb_parameter skip_device_list[] = {
        {0x0685, 0x7000, NULL, NULL, NULL},
 };
 
-/*
-    0 - 不同
-    1 - 相同
- */
-static int match_string(const char* s1, const char* s2)
-{
-    int count = 0;
-    while( s1[count] && s2[count] && !(s1[count]-s2[count]) )
-        ++count;
-
-    return !(s1[count]-s2[count]);
-}
-
 /* 1 - match
   * 0 - no match
   */
index 2c07ad320cee978763fb8d7a1e8c1a076655783d..a7ab681063aa76b3ab88ecb0cb3f3c61f7a0e715 100644 (file)
@@ -955,6 +955,10 @@ static struct usb_device_id option_ids[] = {
        { USB_DEVICE(0x04CC, 0x226E) },
        { USB_DEVICE(0x04CC, 0x225A) },
        { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0015) },
+       { USB_DEVICE(ALCATEL_VENDOR_ID, 0x00b7) },
+       { USB_DEVICE(ZTE_VENDOR_ID, 0xFFFF) },
+       { USB_DEVICE(LEADCORE_VENDOR_ID, 0x5700) },
+       { USB_DEVICE(LEADCORE_VENDOR_ID, 0x6341) },
 
        /* Cinterion */
        { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_EU3_E) },