USB option driver K3765/K4505 avoid CDC_DATA interface
[~shefty/rdma-dev.git] / drivers / usb / serial / option.c
index 78452baca88b10ade8212c734898cfb17854b10a..fe22e90bc879551a912ebcbcbf974a83c4ae0cb9 100644 (file)
@@ -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 */