]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
usb: core: Add USB_QUIRK_DELAY_CTRL_MSG to usbcore quirks
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 23 Mar 2018 19:26:36 +0000 (03:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Mar 2018 10:50:45 +0000 (12:50 +0200)
There's a new quirk, USB_QUIRK_DELAY_CTRL_MSG. Add it to usbcore quirks
for completeness.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/kernel-parameters.txt
drivers/usb/core/quirks.c

index e00cdd313dc2741580202a4e4c092b5469587ee2..372d48326b1d838ec0ed27fa8ea8f6f54afb3e4f 100644 (file)
                                        calculation);
                                m = USB_QUIRK_DISCONNECT_SUSPEND (Device needs
                                        to be disconnected before suspend to
-                                       prevent spurious wakeup)
+                                       prevent spurious wakeup);
+                               n = USB_QUIRK_DELAY_CTRL_MSG (Device needs a
+                                       pause after every control message);
                        Example: quirks=0781:5580:bk,0a5c:5834:gij
 
        usbhid.mousepoll=
index 29e5f32b38df6b2f1e3969523ddb7160e2014f66..920f48a49a87021a513b4e395a903044a558abf5 100644 (file)
@@ -124,6 +124,9 @@ static int quirks_param_set(const char *val, const struct kernel_param *kp)
                        case 'm':
                                flags |= USB_QUIRK_DISCONNECT_SUSPEND;
                                break;
+                       case 'n':
+                               flags |= USB_QUIRK_DELAY_CTRL_MSG;
+                               break;
                        /* Ignore unrecognized flag characters */
                        }
                }