usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 11 Sep 2023 12:56:52 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 14:19:12 +0000 (16:19 +0200)
commit52e24f8c0a102ac76649c6b71224fadcc82bd5da
tree978e94df35b8fd19ede02f0aac4db060031fdf48
parent7ca9f9ba8aa7380dee5dd8346b57bbaf198b075a
usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk

In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. In the pci-quirks case the I/O port acceses are
used in the quirks for several AMD south bridges, Add a config option
for the AMD quirks to depend on HAS_IOPORT and #ifdef the quirk code.

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-3-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/Kconfig
drivers/usb/core/hcd-pci.c
drivers/usb/host/pci-quirks.c
drivers/usb/host/pci-quirks.h
include/linux/usb/hcd.h