aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
authorAndrew Bird <ajb@spheresystems.co.uk>2011-08-17 00:20:03 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 11:39:51 -0700
commit6ab711f962ab092c2a6b6a5b822075b246a8119e (patch)
tree4f38734f8328837da124b2c5a2283ed07af5a92c /drivers/usb/serial/option.c
parent42dc061e21788aa7805bc4f07dcdfa5f4b8f2b11 (diff)
downloadkernel_samsung_smdk4412-6ab711f962ab092c2a6b6a5b822075b246a8119e.zip
kernel_samsung_smdk4412-6ab711f962ab092c2a6b6a5b822075b246a8119e.tar.gz
kernel_samsung_smdk4412-6ab711f962ab092c2a6b6a5b822075b246a8119e.tar.bz2
USB option driver K3765/K4505 avoid CDC_DATA interface
commit 6118514e8749105334f46ccec6faf9a439be6cf9 upstream. Currently the Option driver avoids binding interface 1 on Huawei K3765 and K4505 broadband modems as it should be handled by the cdc_ether driver instead. This patch ensures we don't bind the interface 2 on those devices as that is CDC_DATA. Signed-off-by: Andrew Bird <ajb@spheresystems.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r--drivers/usb/serial/option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 78452ba..fe22e90 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1235,7 +1235,8 @@ static int option_probe(struct usb_serial *serial,
(serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K3765 ||
serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4505 ||
serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4605) &&
- serial->interface->cur_altsetting->desc.bInterfaceNumber == 1)
+ (serial->interface->cur_altsetting->desc.bInterfaceNumber == 1 ||
+ serial->interface->cur_altsetting->desc.bInterfaceNumber == 2))
return -ENODEV;
/* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */