From: CMY Date: Wed, 31 Aug 2011 02:55:09 +0000 (+0800) Subject: Add some 3G dongle X-Git-Tag: firefly_0821_release~9767^2~76 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=99b6d2267bd84bb303d09a463d1ba3addfd692a3;p=firefly-linux-kernel-4.4.55.git Add some 3G dongle --- diff --git a/drivers/base/devices_filter.h b/drivers/base/devices_filter.h index 0a39257583ad..e53840a0f590 100644 --- a/drivers/base/devices_filter.h +++ b/drivers/base/devices_filter.h @@ -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 */ diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 2c07ad320cee..a7ab681063aa 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -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) },