From aef22c219068fc4cdf290ba7a287b0b10ea7bdac Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 6 Oct 2011 18:23:16 +0000 Subject: [generic] add IDs for Huawai K3770, K3771, K4510 and K4511 to option driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28376 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../822-usb_serial_option_add_more_devices.patch | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'target/linux/generic/patches-2.6.36') diff --git a/target/linux/generic/patches-2.6.36/822-usb_serial_option_add_more_devices.patch b/target/linux/generic/patches-2.6.36/822-usb_serial_option_add_more_devices.patch index 4673b5fbd..e19094b74 100644 --- a/target/linux/generic/patches-2.6.36/822-usb_serial_option_add_more_devices.patch +++ b/target/linux/generic/patches-2.6.36/822-usb_serial_option_add_more_devices.patch @@ -1,14 +1,19 @@ --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c -@@ -149,6 +149,7 @@ static void option_instat_callback(struc +@@ -148,7 +148,12 @@ static void option_instat_callback(struc + #define HUAWEI_PRODUCT_K4505 0x1464 #define HUAWEI_PRODUCT_K3765 0x1465 #define HUAWEI_PRODUCT_E14AC 0x14AC ++#define HUAWEI_PRODUCT_K3770 0x14C9 ++#define HUAWEI_PRODUCT_K3771 0x14CA ++#define HUAWEI_PRODUCT_K4510 0x14CB ++#define HUAWEI_PRODUCT_K4511 0x14CC #define HUAWEI_PRODUCT_ETS1220 0x1803 +#define HUAWEI_PRODUCT_E173S 0x1C05 #define QUANTA_VENDOR_ID 0x0408 #define QUANTA_PRODUCT_Q101 0xEA02 -@@ -344,6 +345,7 @@ static void option_instat_callback(struc +@@ -344,6 +349,7 @@ static void option_instat_callback(struc /* ALCATEL PRODUCTS */ #define ALCATEL_VENDOR_ID 0x1bbb #define ALCATEL_PRODUCT_X060S 0x0000 @@ -16,15 +21,23 @@ #define PIRELLI_VENDOR_ID 0x1266 #define PIRELLI_PRODUCT_C100_1 0x1002 -@@ -522,6 +524,7 @@ static const struct usb_device_id option +@@ -522,6 +528,15 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3765, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_ETS1220, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC, 0xff, 0xff, 0xff) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3770, 0xff, 0x02, 0x31) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3770, 0xff, 0x02, 0x32) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3771, 0xff, 0x02, 0x31) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3771, 0xff, 0x02, 0x32) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4510, 0xff, 0x01, 0x31) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4510, 0xff, 0x01, 0x32) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4511, 0xff, 0x01, 0x31) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4511, 0xff, 0x01, 0x32) }, + { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173S) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V740) }, -@@ -925,6 +928,7 @@ static const struct usb_device_id option +@@ -925,6 +940,7 @@ static const struct usb_device_id option { USB_DEVICE(ALINK_VENDOR_ID, 0x9000) }, { USB_DEVICE_AND_INTERFACE_INFO(ALINK_VENDOR_ID, ALINK_PRODUCT_3GU, 0xff, 0xff, 0xff) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S) }, -- cgit v1.2.3