diff options
author | 2023-09-11 14:56:53 +0200 | |
---|---|---|
committer | 2023-10-02 16:19:13 +0200 | |
commit | 358ad297e379ff548247e3e24c6619559942bfdd (patch) | |
tree | 8c809dfcd2b1d56a2ab8fe39511e9c2047a36ecd /include/linux/usb.h | |
parent | usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk (diff) | |
download | wireguard-linux-358ad297e379ff548247e3e24c6619559942bfdd.tar.xz wireguard-linux-358ad297e379ff548247e3e24c6619559942bfdd.zip |
usb: pci-quirks: handle HAS_IOPORT dependency for UHCI handoff
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. With the AMD quirk handled USB PCI quirks still use
inw() in uhci_check_and_reset_hc() and thus indirectly in
quirk_usb_handoff_uhci(). Handle this by conditionally compiling
uhci_check_and_reset_hc() and stubbing out quirk_usb_handoff_uhci() when
HAS_IOPORT is not available.
Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20230911125653.1393895-4-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions