Re: [PATCH v5 35/44] tty: serial: handle HAS_IOPORT dependencies

Greg Kroah-Hartman
2023-05-30T14:39:25Z

On Mon, May 22, 2023 at 12:50:40PM +0200, Niklas Schnelle wrote:
> In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
> not being declared. We thus need to add HAS_IOPORT as dependency for
> those drivers using them unconditionally. For 8250 based drivers some
> support MMIO only use so fence only the parts requiring I/O ports.
>
> 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>
> ---
> drivers/tty/Kconfig | 4 +--
> drivers/tty/serial/8250/8250_early.c | 4 +++
> drivers/tty/serial/8250/8250_pci.c | 14 +++++++++
> drivers/tty/serial/8250/8250_port.c | 44 +++++++++++++++++++++++-----
> drivers/tty/serial/8250/Kconfig | 5 ++--
> drivers/tty/serial/Kconfig | 2 +-
> 6 files changed, 60 insertions(+), 13 deletions(-)

This doesn't apply at all to my tree, so I'll just let you take it as
there must be some merge issues somewhere:

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>