[Bionic] [PATCH 0/3] Backport USB core quirks

Kai-Heng Feng kai.heng.feng at canonical.com
Tue Apr 10 09:49:28 UTC 2018

BugLink: https://bugs.launchpad.net/bugs/1762695

Currently we need to recompile the entire kernel if we want try quirks
in usbcore.

Use kernel parameter "usbcore.quirks=" in conjunction with dynamic debug
for usbcore, we can see that usb quirks successfully enabled for USB
devices dynamically.

Introduce a new module parameter, "usbcore.quirks=". Users now can try
different quirks without compiling anything.

[Regression Potential]
Low. It doesn't change any behavior of usb driver per se, it simply adds
new logic to detect quirks.

Kai-Heng Feng (3):
  usb: core: Add "quirks" parameter for usbcore
  usb: core: Copy parameter string correctly and remove superfluous null
  usb: core: Add USB_QUIRK_DELAY_CTRL_MSG to usbcore quirks

 Documentation/admin-guide/kernel-parameters.txt |  58 ++++++++
 drivers/usb/core/quirks.c                       | 186 +++++++++++++++++++++++-
 drivers/usb/core/usb.c                          |   1 +
 drivers/usb/core/usb.h                          |   1 +
 4 files changed, 241 insertions(+), 5 deletions(-)


More information about the kernel-team mailing list