diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2023-05-22 12:50:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-29 15:29:03 +0100 |
commit | dc54ce3e603b0cde997465a4511fae41c0447bab (patch) | |
tree | 270f459924ec0dedd0ea3041077dc26e42c89069 /drivers/usb/cdns3/cdns3-imx.c | |
parent | be3d5a493b666a8faed8c08ece0fce7a9c9cc741 (diff) | |
download | linux-dc54ce3e603b0cde997465a4511fae41c0447bab.tar.gz linux-dc54ce3e603b0cde997465a4511fae41c0447bab.tar.bz2 linux-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 <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230522105049.1467313-38-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions