earlycon: Increase options size
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 24 Nov 2022 12:39:08 +0000 (13:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:56:44 +0000 (14:56 +0100)
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>
include/linux/serial_core.h

index fd59f600094a0673fd76af07583687ba910eaad3..026294c6ccb822759b49516d5161a43aa31a229b 100644 (file)
@@ -781,7 +781,7 @@ static inline int uart_poll_timeout(struct uart_port *port)
 struct earlycon_device {
        struct console *con;
        struct uart_port port;
-       char options[16];               /* e.g., 115200n8 */
+       char options[32];               /* e.g., 115200n8 */
        unsigned int baud;
 };