serial: 8250: Add preferred console in serial8250_isa_init_ports()
authorTony Lindgren <tony@atomide.com>
Wed, 27 Mar 2024 10:59:40 +0000 (12:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 13:30:13 +0000 (15:30 +0200)
commita8b04cfe7dad84e65df5996e14b435fd356fe62c
treefb4808dd5ee73e9275da5d2a6fb2bc791a13bae6
parenta0f32e2dd99867b164bfebcf36729c2a0d41b30b
serial: 8250: Add preferred console in serial8250_isa_init_ports()

Prepare 8250 ISA ports to drop kernel command line serial console
handling from console_setup().

We need to set the preferred console in serial8250_isa_init_ports()
to drop a dependency to setup_console() handling the ttyS related
quirks. Otherwise when console_setup() handles the ttyS related
options, console gets enabled only at driver probe time.

Note that this mostly affects x86 as this happens based on define
SERIAL_PORT_DFNS.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20240327110021.59793-7-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/serial_base.h
drivers/tty/serial/serial_base_bus.c