]> git.baikalelectronics.ru Git - kernel.git/commit
console: Add extensible console matching
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:12 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 15:16:20 +0000 (16:16 +0100)
commit14ccdc1563ba11d68b7b2e4c101fcf9f7e44f088
tree5e3d7761af96a243ac7460cbbd4e6b20f4eb00c2
parentd1d98a21fe8f6503c5676949c2c88ed68ef239d9
console: Add extensible console matching

Add match() method to struct console which allows the console to
perform console command line matching instead of (or in addition to)
default console matching (ie., by fixed name and index).

The match() method returns 0 to indicate a successful match; normal
console matching occurs if no match() method is defined or the
match() method returns non-zero. The match() method is expected to set
the console index if required.

Re-implement earlycon-to-console-handoff with direct matching of
"console=uart|uart8250,..." to the 8250 ttyS console.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_early.c
include/linux/console.h
include/linux/serial_8250.h
kernel/printk/printk.c