提交 6118514e 编写于 作者: A Andrew Bird 提交者: Greg Kroah-Hartman

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: NAndrew Bird <ajb@spheresystems.co.uk>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c6eb2d75
...@@ -1235,7 +1235,8 @@ static int option_probe(struct usb_serial *serial, ...@@ -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_K3765 ||
serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4505 || serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4505 ||
serial->dev->descriptor.idProduct == HUAWEI_PRODUCT_K4605) && 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; return -ENODEV;
/* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */ /* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册