[generic] add IDs for Huawai K3770, K3771, K4510 and K4511 to option driver
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 6 Oct 2011 18:23:16 +0000 (18:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 6 Oct 2011 18:23:16 +0000 (18:23 +0000)
SVN-Revision: 28376

target/linux/generic/patches-2.6.30/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.31/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.32/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.36/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.37/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.38/822-usb_serial_option_add_more_devices.patch
target/linux/generic/patches-2.6.39/822-usb_serial_option_add_more_devices.patch [new file with mode: 0644]

index e6acd0324ef16343afeb57520d595e979870d109..e169fdecb0ccbdd124a5d45987742caade4b0d92 100644 (file)
@@ -8,7 +8,18 @@
  
  #define QUANTA_VENDOR_ID                      0x0408
  #define QUANTA_PRODUCT_Q101                   0xEA02
-@@ -304,6 +305,10 @@ static int  option_resume(struct usb_ser
+@@ -179,6 +180,10 @@ static int  option_resume(struct usb_ser
+ /* MERLIN EVDO PRODUCTS */
+ #define NOVATELWIRELESS_PRODUCT_V640          0x1100
+ #define NOVATELWIRELESS_PRODUCT_V620          0x1110
++#define HUAWEI_PRODUCT_K3770                  0x14C9
++#define HUAWEI_PRODUCT_K3771                  0x14CA
++#define HUAWEI_PRODUCT_K4510                  0x14CB
++#define HUAWEI_PRODUCT_K4511                  0x14CC
+ #define NOVATELWIRELESS_PRODUCT_V740          0x1120
+ #define NOVATELWIRELESS_PRODUCT_V720          0x1130
+@@ -304,6 +309,10 @@ static int  option_resume(struct usb_ser
  #define DLINK_VENDOR_ID                               0x1186
  #define DLINK_PRODUCT_DWM_652                 0x3e04
  
  
  static struct usb_device_id option_ids[] = {
        { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
-@@ -402,6 +407,7 @@ static struct usb_device_id option_ids[]
+@@ -401,7 +410,16 @@ static struct usb_device_id option_ids[]
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143C, 0xff, 0xff, 0xff) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143D, 0xff, 0xff, 0xff) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143E, 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_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143F, 0xff, 0xff, 0xff) },
 +      { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173S) },
        { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_9508) },
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, /* Novatel Merlin V640/XV620 */
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, /* Novatel Merlin V620/S620 */
-@@ -523,6 +529,7 @@ static struct usb_device_id option_ids[]
+@@ -523,6 +541,7 @@ static struct usb_device_id option_ids[]
        { USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) },
        { USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) },
        { USB_DEVICE(0x1da5, 0x4515) }, /* BenQ H20 */
index e91cf62a32181489e8a00822a7d1c64f70ab5cd5..1114c08981742ee5eca4616d2509dcb07a8563e6 100644 (file)
@@ -1,14 +1,18 @@
 --- a/drivers/usb/serial/option.c
 +++ b/drivers/usb/serial/option.c
-@@ -167,6 +167,7 @@ static int  option_resume(struct usb_ser
+@@ -167,6 +167,11 @@ static int  option_resume(struct usb_ser
  #define HUAWEI_PRODUCT_E143E                  0x143E
  #define HUAWEI_PRODUCT_E143F                  0x143F
  #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_E173S                  0x1C05
  
  #define QUANTA_VENDOR_ID                      0x0408
  #define QUANTA_PRODUCT_Q101                   0xEA02
-@@ -332,6 +333,7 @@ static int  option_resume(struct usb_ser
+@@ -332,6 +337,7 @@ static int  option_resume(struct usb_ser
  /* ALCATEL PRODUCTS */
  #define ALCATEL_VENDOR_ID                     0x1bbb
  #define ALCATEL_PRODUCT_X060S                 0x0000
  
  /* Airplus products */
  #define AIRPLUS_VENDOR_ID                     0x1011
-@@ -439,6 +441,7 @@ static struct usb_device_id option_ids[]
+@@ -437,8 +443,17 @@ static struct usb_device_id option_ids[]
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143C, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143D, 0xff, 0xff, 0xff) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143E, 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_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143F, 0xff, 0xff, 0xff) },
        { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC) },
 +      { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173S) },
        { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_9508) },
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, /* Novatel Merlin V640/XV620 */
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, /* Novatel Merlin V620/S620 */
-@@ -639,6 +642,7 @@ static struct usb_device_id option_ids[]
+@@ -639,6 +654,7 @@ static struct usb_device_id option_ids[]
        { USB_DEVICE(ALINK_VENDOR_ID, 0xce16) },
        { USB_DEVICE_AND_INTERFACE_INFO(ALINK_VENDOR_ID, ALINK_PRODUCT_3GU, 0xff, 0xff, 0xff) },
        { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S) },
index acd89152d595c711b20551fd265892bb8b95c293..0f404308dceea003bbc9e56a31913a8a380d8b3d 100644 (file)
@@ -1,14 +1,19 @@
 --- a/drivers/usb/serial/option.c
 +++ b/drivers/usb/serial/option.c
-@@ -169,6 +169,7 @@ static int  option_resume(struct usb_ser
+@@ -168,7 +168,12 @@ static int  option_resume(struct usb_ser
+ #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
-@@ -338,6 +339,7 @@ static int  option_resume(struct usb_ser
+@@ -338,6 +343,7 @@ static int  option_resume(struct usb_ser
  /* ALCATEL PRODUCTS */
  #define ALCATEL_VENDOR_ID                     0x1bbb
  #define ALCATEL_PRODUCT_X060S                 0x0000
  
  #define PIRELLI_VENDOR_ID                     0x1266
  #define PIRELLI_PRODUCT_C100_1                        0x1002
-@@ -489,6 +491,7 @@ static struct usb_device_id option_ids[]
+@@ -489,6 +495,15 @@ static struct usb_device_id option_ids[]
        { 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(AMOI_VENDOR_ID, AMOI_PRODUCT_9508) },
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, /* Novatel Merlin V640/XV620 */
        { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, /* Novatel Merlin V620/S620 */
-@@ -883,6 +886,7 @@ static struct usb_device_id option_ids[]
+@@ -883,6 +898,7 @@ static struct usb_device_id option_ids[]
        { USB_DEVICE(ALINK_VENDOR_ID, 0xce16) },
        { USB_DEVICE_AND_INTERFACE_INFO(ALINK_VENDOR_ID, ALINK_PRODUCT_3GU, 0xff, 0xff, 0xff) },
        { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S) },
index 4673b5fbdfe7676c5cf0822ca9739e83106af95d..e19094b74d2afdda9ca2696ef71189bc9e5be544 100644 (file)
@@ -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
  
  #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) },
index 64b7e7e8106dd66888c3936d708f73000b5cf392..54649a45c326841fb43dea274c50d50180d742dd 100644 (file)
@@ -1,14 +1,23 @@
 --- 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,16 @@ 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_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 +353,7 @@ static void option_instat_callback(struc
  /* ALCATEL PRODUCTS */
  #define ALCATEL_VENDOR_ID                     0x1bbb
  #define ALCATEL_PRODUCT_X060S                 0x0000
  
  #define PIRELLI_VENDOR_ID                     0x1266
  #define PIRELLI_PRODUCT_C100_1                        0x1002
-@@ -528,6 +530,7 @@ static const struct usb_device_id option
+@@ -528,6 +538,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) },
-@@ -932,6 +935,7 @@ static const struct usb_device_id option
+@@ -932,6 +951,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) },
index 10a64326cfe9ca6101ef3a942e1009ea89305388..98ca87885af4e196400009f74eae8c90354a35c9 100644 (file)
@@ -1,14 +1,20 @@
 --- a/drivers/usb/serial/option.c
 +++ b/drivers/usb/serial/option.c
-@@ -150,6 +150,7 @@ static void option_instat_callback(struc
+@@ -148,8 +148,13 @@ 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_E353                   0x1506
 +#define HUAWEI_PRODUCT_E173S                  0x1C05
  
  #define QUANTA_VENDOR_ID                      0x0408
  #define QUANTA_PRODUCT_Q101                   0xEA02
-@@ -345,6 +346,7 @@ static void option_instat_callback(struc
+@@ -345,6 +350,7 @@ static void option_instat_callback(struc
  /* ALCATEL PRODUCTS */
  #define ALCATEL_VENDOR_ID                     0x1bbb
  #define ALCATEL_PRODUCT_X060S                 0x0000
  
  #define PIRELLI_VENDOR_ID                     0x1266
  #define PIRELLI_PRODUCT_C100_1                        0x1002
-@@ -534,6 +536,7 @@ static const struct usb_device_id option
+@@ -533,7 +539,16 @@ 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_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x01) },
 +      { 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) },
-@@ -937,6 +940,7 @@ static const struct usb_device_id option
+@@ -937,6 +952,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) },
diff --git a/target/linux/generic/patches-2.6.39/822-usb_serial_option_add_more_devices.patch b/target/linux/generic/patches-2.6.39/822-usb_serial_option_add_more_devices.patch
new file mode 100644 (file)
index 0000000..01d5da8
--- /dev/null
@@ -0,0 +1,28 @@
+--- a/drivers/usb/serial/option.c
++++ b/drivers/usb/serial/option.c
+@@ -148,6 +148,10 @@ 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_E353                   0x1506
+@@ -547,6 +551,14 @@ 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_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x01) },
+       { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) },
+       { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) },