Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

earlycon: Increase options size

Now that the clock frequency is also part of the options, 16 bytes is
too little.

Without this patch dmesg does not show the whole options, Eg:

earlycon: uart0 at MMIO32 0x00000000fedc9000 (options '115200n8,480000')

instead of: '115200n8,48000000'

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123-serial-clk-v3-2-49c516980ae0@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ricardo Ribalda and committed by
Greg Kroah-Hartman
41000b03 374b30f2

+1 -1
+1 -1
include/linux/serial_core.h
··· 781 781 struct earlycon_device { 782 782 struct console *con; 783 783 struct uart_port port; 784 - char options[16]; /* e.g., 115200n8 */ 784 + char options[32]; /* e.g., 115200n8 */ 785 785 unsigned int baud; 786 786 }; 787 787