* [PATCH 29/37] tty: serial: add HAS_IOPORT dependencies [not found] <20220429135108.2781579-1-schnelle@linux.ibm.com> @ 2022-04-29 13:50 ` Niklas Schnelle 2022-04-29 14:47 ` Niklas Schnelle 2022-04-29 13:51 ` [RFC v2 34/39] " Niklas Schnelle 1 sibling, 1 reply; 4+ messages in thread From: Niklas Schnelle @ 2022-04-29 13:50 UTC (permalink / raw) To: Arnd Bergmann Cc: Greg Kroah-Hartman, linux-kernel, linux-arch, linux-pci, Arnd Bergmann, Jiri Slaby, open list:SERIAL DRIVERS 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. Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> --- drivers/tty/Kconfig | 2 +- drivers/tty/serial/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig index cc30ff93e2e4..e31cbd88f5a0 100644 --- a/drivers/tty/Kconfig +++ b/drivers/tty/Kconfig @@ -203,7 +203,7 @@ config MOXA_INTELLIO config MOXA_SMARTIO tristate "Moxa SmartIO support v. 2.0" - depends on SERIAL_NONSTANDARD && PCI + depends on SERIAL_NONSTANDARD && PCI && HAS_IOPORT help Say Y here if you have a Moxa SmartIO multiport serial card and/or want to help develop a new version of this driver. diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 6949e883ffab..32c946adb023 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -909,7 +909,7 @@ config SERIAL_VR41XX_CONSOLE config SERIAL_JSM tristate "Digi International NEO and Classic PCI Support" - depends on PCI + depends on PCI && HAS_IOPORT select SERIAL_CORE help This is a driver for Digi International's Neo and Classic series -- 2.32.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 29/37] tty: serial: add HAS_IOPORT dependencies 2022-04-29 13:50 ` [PATCH 29/37] tty: serial: add HAS_IOPORT dependencies Niklas Schnelle @ 2022-04-29 14:47 ` Niklas Schnelle 0 siblings, 0 replies; 4+ messages in thread From: Niklas Schnelle @ 2022-04-29 14:47 UTC (permalink / raw) To: Arnd Bergmann Cc: Greg Kroah-Hartman, linux-kernel, linux-arch, linux-pci, Arnd Bergmann, Jiri Slaby, open list:SERIAL DRIVERS On Fri, 2022-04-29 at 15:50 +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. > > Co-developed-by: Arnd Bergmann <arnd@kernel.org> > Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> > --- Sorry everyone. I sent this as PATCH in error while preparing to sent the same series as RFC. Since e-mail has no remote delete and I lack a time machine let's just all pretend you only got the RFC. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC v2 34/39] tty: serial: add HAS_IOPORT dependencies [not found] <20220429135108.2781579-1-schnelle@linux.ibm.com> 2022-04-29 13:50 ` [PATCH 29/37] tty: serial: add HAS_IOPORT dependencies Niklas Schnelle @ 2022-04-29 13:51 ` Niklas Schnelle 2022-05-02 9:15 ` Maciej W. Rozycki 1 sibling, 1 reply; 4+ messages in thread From: Niklas Schnelle @ 2022-04-29 13:51 UTC (permalink / raw) To: Arnd Bergmann Cc: Greg Kroah-Hartman, linux-kernel, linux-arch, linux-pci, Arnd Bergmann, Jiri Slaby, open list:SERIAL DRIVERS 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. Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> --- drivers/tty/Kconfig | 2 +- drivers/tty/serial/8250/Kconfig | 2 +- drivers/tty/serial/Kconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig index cc30ff93e2e4..e31cbd88f5a0 100644 --- a/drivers/tty/Kconfig +++ b/drivers/tty/Kconfig @@ -203,7 +203,7 @@ config MOXA_INTELLIO config MOXA_SMARTIO tristate "Moxa SmartIO support v. 2.0" - depends on SERIAL_NONSTANDARD && PCI + depends on SERIAL_NONSTANDARD && PCI && HAS_IOPORT help Say Y here if you have a Moxa SmartIO multiport serial card and/or want to help develop a new version of this driver. diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig index cd93ea6eed65..e216bf745e78 100644 --- a/drivers/tty/serial/8250/Kconfig +++ b/drivers/tty/serial/8250/Kconfig @@ -6,7 +6,7 @@ config SERIAL_8250 tristate "8250/16550 and compatible serial support" - depends on !S390 + depends on HAS_IOPORT select SERIAL_CORE select SERIAL_MCTRL_GPIO if GPIOLIB help diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 6949e883ffab..32c946adb023 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -909,7 +909,7 @@ config SERIAL_VR41XX_CONSOLE config SERIAL_JSM tristate "Digi International NEO and Classic PCI Support" - depends on PCI + depends on PCI && HAS_IOPORT select SERIAL_CORE help This is a driver for Digi International's Neo and Classic series -- 2.32.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RFC v2 34/39] tty: serial: add HAS_IOPORT dependencies 2022-04-29 13:51 ` [RFC v2 34/39] " Niklas Schnelle @ 2022-05-02 9:15 ` Maciej W. Rozycki 0 siblings, 0 replies; 4+ messages in thread From: Maciej W. Rozycki @ 2022-05-02 9:15 UTC (permalink / raw) To: Niklas Schnelle Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel, linux-arch, linux-pci, Arnd Bergmann, Jiri Slaby, open list:SERIAL DRIVERS On Fri, 29 Apr 2022, 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. [...] > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > index cd93ea6eed65..e216bf745e78 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -6,7 +6,7 @@ > > config SERIAL_8250 > tristate "8250/16550 and compatible serial support" > - depends on !S390 > + depends on HAS_IOPORT > select SERIAL_CORE > select SERIAL_MCTRL_GPIO if GPIOLIB > help Similarly here some 8250-compatible platform or PCI/e serial port devices use MMIO, e.g.: serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20, base_baud = 230400) is a 16550A or: 0001:01:00.0: ttyS0 at MMIO 0x600c080401000 (irq = 40, base_baud = 15625000) is a 16C950/954 so this has to be sorted out within the driver rather than by disabling it altogether. Possibly with a suitable conditional wired to HAS_IOPORT in `set_io_from_upio' in drivers/tty/serial/8250/8250_port.c. Maciej ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-02 9:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220429135108.2781579-1-schnelle@linux.ibm.com>
2022-04-29 13:50 ` [PATCH 29/37] tty: serial: add HAS_IOPORT dependencies Niklas Schnelle
2022-04-29 14:47 ` Niklas Schnelle
2022-04-29 13:51 ` [RFC v2 34/39] " Niklas Schnelle
2022-05-02 9:15 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox