usb: pci-quirks: handle HAS_IOPORT dependency for UHCI handoff
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 11 Sep 2023 12:56:53 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 14:19:13 +0000 (16:19 +0200)
commit358ad297e379ff548247e3e24c6619559942bfdd
tree8c809dfcd2b1d56a2ab8fe39511e9c2047a36ecd
parent52e24f8c0a102ac76649c6b71224fadcc82bd5da
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>
drivers/usb/host/pci-quirks.c