Skip to content

Commit 0e28ed6

Browse files
mwallegregkh
authored andcommitted
Revert "tty: serial: fsl_lpuart: drop EARLYCON_DECLARE"
This reverts commit a659652. This broke the earlycon on LS1021A processors because the order of the earlycon_setup() functions were changed. Before the commit the normal lpuart32_early_console_setup() was called. After the commit the lpuart32_imx_early_console_setup() is called instead. Fixes: a659652 ("tty: serial: fsl_lpuart: drop EARLYCON_DECLARE") Signed-off-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 35d4670 commit 0e28ed6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/tty/serial/fsl_lpuart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,6 +2390,8 @@ static int __init lpuart32_imx_early_console_setup(struct earlycon_device *devic
23902390
OF_EARLYCON_DECLARE(lpuart, "fsl,vf610-lpuart", lpuart_early_console_setup);
23912391
OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1021a-lpuart", lpuart32_early_console_setup);
23922392
OF_EARLYCON_DECLARE(lpuart32, "fsl,imx7ulp-lpuart", lpuart32_imx_early_console_setup);
2393+
EARLYCON_DECLARE(lpuart, lpuart_early_console_setup);
2394+
EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup);
23932395

23942396
#define LPUART_CONSOLE (&lpuart_console)
23952397
#define LPUART32_CONSOLE (&lpuart32_console)

0 commit comments

Comments
 (0)