]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - Documentation/admin-guide/kernel-parameters.txt
usb: core: Add "quirks" parameter for usbcore
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 19 Mar 2018 16:26:06 +0000 (00:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Mar 2018 09:16:09 +0000 (10:16 +0100)
commit027bd6cafd9a1e3a109b5e5682c85ac84e804a8d
tree7449e31c4a729b72cfae81c977f786869b55d542
parentca5a2e9a774b0a18815f23cd9cbb923966a2d8bc
usb: core: Add "quirks" parameter for usbcore

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>
Documentation/admin-guide/kernel-parameters.txt
drivers/usb/core/quirks.c
drivers/usb/core/usb.c
drivers/usb/core/usb.h