diff options
author | Andrew Bird <ajb@spheresystems.co.uk> | 2011-08-16 19:20:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 16:55:51 -0400 |
commit | 6118514e8749105334f46ccec6faf9a439be6cf9 (patch) | |
tree | a0e0b84fb6202c1f4107d3e0ab3ac8d3c742b26b /drivers/usb | |
parent | c6eb2d75ffcdfafa37ff010bf467de20d468ef79 (diff) |
USB option driver K3765/K4505 avoid CDC_DATA interface
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 78452baca88b..fe22e90bc879 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, | |||
1235 | (serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K3765 || | 1235 | (serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K3765 || |
1236 | serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4505 || | 1236 | serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4505 || |
1237 | serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4605) && | 1237 | serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4605) && |
1238 | serial->interface->cur_altsetting->desc.bInterfaceNumber == 1) | 1238 | (serial->interface->cur_altsetting->desc.bInterfaceNumber == 1 || |
1239 | serial->interface->cur_altsetting->desc.bInterfaceNumber == 2)) | ||
1239 | return -ENODEV; | 1240 | return -ENODEV; |
1240 | 1241 | ||
1241 | /* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */ | 1242 | /* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */ |