aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorNiklas Schnelle <[email protected]>2023-05-22 10:50:42 +0000
committerGreg Kroah-Hartman <[email protected]>2023-05-29 14:29:03 +0000
commitdc54ce3e603b0cde997465a4511fae41c0447bab (patch)
tree270f459924ec0dedd0ea3041077dc26e42c89069 /drivers/usb/cdns3/cdns3-starfive.c
parentusb: add HAS_IOPORT dependencies (diff)
downloadkernel-dc54ce3e603b0cde997465a4511fae41c0447bab.tar.gz
kernel-dc54ce3e603b0cde997465a4511fae41c0447bab.zip
usb: uhci: handle HAS_IOPORT dependencies
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to guard sections of code calling them as alternative access methods with CONFIG_HAS_IOPORT checks. For uhci-hcd there are a lot of I/O port uses that do have MMIO alternatives all selected by uhci_has_pci_registers() so this can be handled by UHCI_IN/OUT macros and making uhci_has_pci_registers() constant 0 if CONFIG_HAS_IOPORT is unset. Co-developed-by: Arnd Bergmann <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Niklas Schnelle <[email protected]> Reviewed-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions