• Kai-Heng Feng's avatar
    usb: core: Add "quirks" parameter for usbcore · 027bd6ca
    Kai-Heng Feng authored
    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: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
usb.h 6.52 KB