Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Overlapping changes in selftests Makefile. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1098,6 +1098,7 @@ static const struct usb_device_id products[] = {
|
||||
{QMI_FIXED_INTF(0x05c6, 0x9080, 8)},
|
||||
{QMI_FIXED_INTF(0x05c6, 0x9083, 3)},
|
||||
{QMI_FIXED_INTF(0x05c6, 0x9084, 4)},
|
||||
{QMI_FIXED_INTF(0x05c6, 0x90b2, 3)}, /* ublox R410M */
|
||||
{QMI_FIXED_INTF(0x05c6, 0x920d, 0)},
|
||||
{QMI_FIXED_INTF(0x05c6, 0x920d, 5)},
|
||||
{QMI_QUIRK_SET_DTR(0x05c6, 0x9625, 4)}, /* YUGA CLM920-NC5 */
|
||||
@@ -1343,6 +1344,18 @@ static int qmi_wwan_probe(struct usb_interface *intf,
|
||||
id->driver_info = (unsigned long)&qmi_wwan_info;
|
||||
}
|
||||
|
||||
/* There are devices where the same interface number can be
|
||||
* configured as different functions. We should only bind to
|
||||
* vendor specific functions when matching on interface number
|
||||
*/
|
||||
if (id->match_flags & USB_DEVICE_ID_MATCH_INT_NUMBER &&
|
||||
desc->bInterfaceClass != USB_CLASS_VENDOR_SPEC) {
|
||||
dev_dbg(&intf->dev,
|
||||
"Rejecting interface number match for class %02x\n",
|
||||
desc->bInterfaceClass);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* Quectel EC20 quirk where we've QMI on interface 4 instead of 0 */
|
||||
if (quectel_ec20_detected(intf) && desc->bInterfaceNumber == 0) {
|
||||
dev_dbg(&intf->dev, "Quectel EC20 quirk, skipping interface 0\n");
|
||||
|
Reference in New Issue
Block a user