]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.36.2/usb-option-fix-when-the-driver-is-loaded-incorrectly-for-some-huawei-devices.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / usb-option-fix-when-the-driver-is-loaded-incorrectly-for-some-huawei-devices.patch
1 From 58c0d9d70109bd7e82bdb9517007311a48499960 Mon Sep 17 00:00:00 2001
2 From: ma rui <m00150988@huawei.com>
3 Date: Mon, 1 Nov 2010 11:32:18 +0800
4 Subject: USB: option: fix when the driver is loaded incorrectly for some Huawei devices.
5
6 From: ma rui <m00150988@huawei.com>
7
8 commit 58c0d9d70109bd7e82bdb9517007311a48499960 upstream.
9
10 When huawei datacard with PID 0x14AC is insterted into Linux system, the
11 present kernel will load the "option" driver to all the interfaces. But
12 actually, some interfaces run as other function and do not need "option"
13 driver.
14
15 In this path, we modify the id_tables, when the PID is 0x14ac ,VID is
16 0x12d1, Only when the interface's Class is 0xff,Subclass is 0xff, Pro is
17 0xff, it does need "option" driver.
18
19 Signed-off-by: ma rui <m00150988@huawei.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21
22 ---
23 drivers/usb/serial/option.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/drivers/usb/serial/option.c
27 +++ b/drivers/usb/serial/option.c
28 @@ -512,7 +512,7 @@ static const struct usb_device_id option
29 { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4505, 0xff, 0xff, 0xff) },
30 { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3765, 0xff, 0xff, 0xff) },
31 { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_ETS1220, 0xff, 0xff, 0xff) },
32 - { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC) },
33 + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC, 0xff, 0xff, 0xff) },
34 { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) },
35 { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) },
36 { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V740) },