Add Vodafone K3765 and K4505 usbids to option driver.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 22 Apr 2010 05:40:20 +0000 (07:40 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 22 Apr 2010 05:40:20 +0000 (07:40 +0200)
lfs/linux
src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch [new file with mode: 0644]

index 47f0458..646b093 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -152,6 +152,9 @@ endif
        # Add some more LED triggers
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.11-netdev-1.patch
 
+       # Huawei (Vodafone) K3765 & K4505 Usbids
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch
+
        # Cleanup kernel source
 
        cp $(DIR_SRC)/config/kernel/kernel.config.$(MACHINE)-$(VERSUFIX) $(DIR_APP)/.config
diff --git a/src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch b/src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch
new file mode 100644 (file)
index 0000000..b102380
--- /dev/null
@@ -0,0 +1,23 @@
+diff -Naur linux-2.6.32.11.org/drivers/usb/serial/option.c linux-2.6.32.11/drivers/usb/serial/option.c
+--- linux-2.6.32.11.org/drivers/usb/serial/option.c    2010-04-02 00:59:14.000000000 +0200
++++ linux-2.6.32.11/drivers/usb/serial/option.c        2010-04-21 21:56:56.000000000 +0200
+@@ -165,6 +165,10 @@
+ #define HUAWEI_PRODUCT_E143D                  0x143D
+ #define HUAWEI_PRODUCT_E143E                  0x143E
+ #define HUAWEI_PRODUCT_E143F                  0x143F
++/* Vodafone K4505-H */
++#define HUAWEI_PRODUCT_E1464                  0x1464
++/* Vodafone K3765-H */
++#define HUAWEI_PRODUCT_E1465                  0x1465
+ #define HUAWEI_PRODUCT_E14AC                  0x14AC
+ #define QUANTA_VENDOR_ID                      0x0408
+@@ -443,6 +447,8 @@
+       { 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_E143F, 0xff, 0xff, 0xff) },
++      { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1464, 0xff, 0xff, 0xff) },
++      { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1465, 0xff, 0xff, 0xff) },
+       { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC) },
+       { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_9508) },
+       { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, /* Novatel Merlin V640/XV620 */