serial: core: Handle serial console options
authorTony Lindgren <tony@atomide.com>
Wed, 27 Mar 2024 10:59:39 +0000 (12:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 13:30:13 +0000 (15:30 +0200)
commita0f32e2dd99867b164bfebcf36729c2a0d41b30b
tree34b94627b2b7d784d3edb3ad26c1e3bf1bf2cc14
parent787a1cabac01c99846070fcf702e53befaf89f79
serial: core: Handle serial console options

In order to start moving the serial console quirks out of console_setup(),
let's add parsing for the quirks to the serial core layer. We can use
serial_base_add_one_prefcon() to handle the quirks.

Note that eventually we may want to set up driver specific console quirk
handling for the serial port device drivers to use. But we need to figure
out which driver(s) need to call the quirk. So for now, we just handle the
sparc quirk directly.

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