Add Vodafone K3565-Z usb id's to option driver
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Jul 2009 13:07:10 +0000 (15:07 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Jul 2009 13:07:10 +0000 (15:07 +0200)
lfs/linux
src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch [new file with mode: 0644]

index 37cd0ae..9756bec 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -183,6 +183,9 @@ endif
        # Not report deprecated syscall 1.23 (for kudzu)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.25.18-not_report_sysctl_1.23.patch
     
+       # Add Vodafone K3565-Z USB ID's to option driver
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch
+
        # Reiser4
        cd $(DIR_APP) && bzip2 -d -c $(DIR_DL)/reiser4-for-2.6.27.19.patch.bz2 | patch -Np1
        
diff --git a/src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch b/src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch
new file mode 100644 (file)
index 0000000..08df38e
--- /dev/null
@@ -0,0 +1,26 @@
+diff -Naur linux-2.6.27.25.org/drivers/usb/serial/option.c linux-2.6.27.25/drivers/usb/serial/option.c
+--- linux-2.6.27.25.org/drivers/usb/serial/option.c    2009-06-12 05:04:50.000000000 +0200
++++ linux-2.6.27.25/drivers/usb/serial/option.c        2009-07-30 10:19:36.000000000 +0200
+@@ -286,6 +286,12 @@
+ #define ZTE_PRODUCT_MF622                     0x0001
+ #define ZTE_PRODUCT_MF628                     0x0015
+ #define ZTE_PRODUCT_MF626                     0x0031
++
++/* Vodafone K3565-Z - pid depends on firmware version */
++#define ZTE_PRODUCT_VFK3565_1                 0x0049
++#define ZTE_PRODUCT_VFK3565_2                 0x0052
++#define ZTE_PRODUCT_VFK3565_3                 0x0063
++
+ #define ZTE_PRODUCT_CDMA_TECH                 0xfffe
+ #define BENQ_VENDOR_ID                                0x04a5
+@@ -500,6 +506,9 @@
+       { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622) },
+       { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_MF626) },
+       { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_MF628) },
++      { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_VFK3565_1) },
++      { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_VFK3565_2) },
++      { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_VFK3565_3) },
+       { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_CDMA_TECH) },
+       { USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) },
+       { USB_DEVICE(0x1da5, 0x4515) }, /* BenQ H20 */