Add Huawei Android usbid's to option driver.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 3 Aug 2010 21:46:28 +0000 (23:46 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 3 Aug 2010 21:46:28 +0000 (23:46 +0200)
config/rootfiles/core/40/filelists/files
lfs/linux
src/patches/linux-2.6.32.15-option_add_huawei_android.patch [new file with mode: 0644]

index 34fb931..c5ca9a8 100644 (file)
@@ -14,3 +14,5 @@ usr/lib/python2.7/site-packages/libxml2.py
 usr/lib/python2.7/site-packages/libxml2mod.so
 usr/lib/python2.7/site-packages/libxml2.pyc
 usr/lib/python2.7/site-packages/libxsltmod.so
+lib/modules/2.6.32.15-ipfire/kernel/drivers/usb/serial/option.ko
+lib/modules/2.6.32.15-ipfire-xen/kernel/drivers/usb/serial/option.ko
index fa0ec1e..5d27158 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -147,6 +147,9 @@ endif
        # Huawei (Vodafone) K3765 & K4505 Usbids
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch
 
+       # Huawei Android Phones (Vodafone V845, T-Mobile Pulse/mini ...)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.15-option_add_huawei_android.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.15-option_add_huawei_android.patch b/src/patches/linux-2.6.32.15-option_add_huawei_android.patch
new file mode 100644 (file)
index 0000000..a6bb66b
--- /dev/null
@@ -0,0 +1,19 @@
+diff -Naur linux-2.6.32.15.org/drivers/usb/serial/option.c linux-2.6.32.15/drivers/usb/serial/option.c
+--- linux-2.6.32.15.org/drivers/usb/serial/option.c    2010-06-01 18:56:03.000000000 +0200
++++ linux-2.6.32.15/drivers/usb/serial/option.c        2010-08-02 22:38:11.000000000 +0200
+@@ -102,6 +102,7 @@
+ #define HUAWEI_PRODUCT_E600                   0x1001
+ #define HUAWEI_PRODUCT_E220                   0x1003
+ #define HUAWEI_PRODUCT_E220BIS                        0x1004
++#define HUAWEI_PRODUCT_ANDROID                        0x1035
+ #define HUAWEI_PRODUCT_E1401                  0x1401
+ #define HUAWEI_PRODUCT_E1402                  0x1402
+ #define HUAWEI_PRODUCT_E1403                  0x1403
+@@ -380,6 +381,7 @@
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E600, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220BIS, 0xff, 0xff, 0xff) },
++      { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_ANDROID, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1401, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1402, 0xff, 0xff, 0xff) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1403, 0xff, 0xff, 0xff) },