]> git.baikalelectronics.ru Git - kernel.git/commit
usb: core: Add "quirks" parameter for usbcore
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 8 Mar 2018 05:37:05 +0000 (13:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:57:25 +0000 (09:57 -0800)
commit666b84faac3f3a84d24b9c0223f1b73b106a6a1b
treed7f91e5f7d46fb60eb0e71fc16ea11533a48de0f
parenta7aa1b97fc600f2df076a0506c166b73445ec515
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