]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
USB: fix up faulty backports
authorWilly Tarreau <w@1wt.eu>
Sun, 21 Aug 2016 08:47:12 +0000 (10:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Aug 2016 21:22:34 +0000 (23:22 +0200)
Ben Hutchings reported that two patches were incorrectly backported
to 3.10 :

ddbe1fca0bcb ("USB: Add device quirk for ASUS T100 Base Station keyboard")
ad87e03213b5 ("USB: add quirk for devices with broken LPM")

These two patches introduce quirks which must be in usb_quirk_list and
not in usb_interface_quirk_list. These last one must only contain the
Logitech UVC camera.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/core/quirks.c

index 94e9cddc05c17686d51a2b720cb3e0ff64fb9a30..aa27ec1f4813c321ec3aa62a617151aef0dac581 100644 (file)
@@ -170,14 +170,6 @@ static const struct usb_device_id usb_quirk_list[] = {
        /* INTEL VALUE SSD */
        { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
 
-       { }  /* terminating entry must be last */
-};
-
-static const struct usb_device_id usb_interface_quirk_list[] = {
-       /* Logitech UVC Cameras */
-       { USB_VENDOR_AND_INTERFACE_INFO(0x046d, USB_CLASS_VIDEO, 1, 0),
-         .driver_info = USB_QUIRK_RESET_RESUME },
-
        /* ASUS Base Station(T100) */
        { USB_DEVICE(0x0b05, 0x17e0), .driver_info =
                        USB_QUIRK_IGNORE_REMOTE_WAKEUP },
@@ -191,6 +183,14 @@ static const struct usb_device_id usb_interface_quirk_list[] = {
        { }  /* terminating entry must be last */
 };
 
+static const struct usb_device_id usb_interface_quirk_list[] = {
+       /* Logitech UVC Cameras */
+       { USB_VENDOR_AND_INTERFACE_INFO(0x046d, USB_CLASS_VIDEO, 1, 0),
+         .driver_info = USB_QUIRK_RESET_RESUME },
+
+       { }  /* terminating entry must be last */
+};
+
 static bool usb_match_any_interface(struct usb_device *udev,
                                    const struct usb_device_id *id)
 {