]> www.infradead.org Git - users/dwmw2/linux.git/commit
serial: core: Add serial_base_match_and_update_preferred_console()
authorTony Lindgren <tony.lindgren@linux.intel.com>
Wed, 3 Jul 2024 10:06:09 +0000 (13:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jul 2024 13:41:44 +0000 (15:41 +0200)
commit12c91cec3155f79216641162a32e04a59abb6e37
tree0e840ababf87134766fc632f14e35ededf5958ad
parent7640f1a44eba0cc1a41b312080c236f5c668cd50
serial: core: Add serial_base_match_and_update_preferred_console()

Let's add serial_base_match_and_update_preferred_console() for consoles
using DEVNAME:0.0 style naming.

The earlier approach to add it caused issues in the kernel command line
ordering as we were calling __add_preferred_console() again for the
deferred consoles.

Signed-off-by: Tony Lindgren <tony.lindgren@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240703100615.118762-3-tony.lindgren@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_base.h
drivers/tty/serial/serial_base_bus.c
drivers/tty/serial/serial_core.c