]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: core: Add "quirks" parameter for usbcore
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 10 Apr 2018 09:49:29 +0000 (17:49 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 10 Apr 2018 14:45:28 +0000 (09:45 -0500)
commit389cb8cf92803b89161444ddf9d8d64c0d19b948
tree91839e25bd6dea861f71ef4fe10d20a93f00643c
parent0f884c09415b7f79566d6c6a300b4130c7abd455
usb: core: Add "quirks" parameter for usbcore

BugLink: https://bugs.launchpad.net/bugs/1762695
Trying quirks in usbcore needs to rebuild the driver or the entire
kernel if it's builtin. It can save a lot of time if usbcore has similar
ability like "usbhid.quirks=" and "usb-storage.quirks=".

Rename the original quirk detection function to "static" as we introduce
this new "dynamic" function.

Now users can use "usbcore.quirks=" as short term workaround before the
next kernel release. Also, the quirk parameter can XOR the builtin
quirks for debugging purpose.

This is inspired by usbhid and usb-storage.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 027bd6cafd9a1e3a109b5e5682c85ac84e804a8d)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Documentation/admin-guide/kernel-parameters.txt
drivers/usb/core/quirks.c
drivers/usb/core/usb.c
drivers/usb/core/usb.h