From 708a5196a76d3f9cc59f22edf2c39a62c8d25b72 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 30 Jul 2009 15:07:10 +0200 Subject: [PATCH] Add Vodafone K3565-Z usb id's to option driver --- lfs/linux | 3 +++ ...6.27.25-option_add_vf-k3565-z_usbids.patch | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch diff --git a/lfs/linux b/lfs/linux index 37cd0ae451..9756bec15f 100644 --- 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 index 0000000000..08df38e990 --- /dev/null +++ b/src/patches/linux-2.6.27.25-option_add_vf-k3565-z_usbids.patch @@ -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 */ -- 2.39.2