Skip to content

Commit 2ae11c4

Browse files
Shubhrajyoti Dattagregkh
authored andcommitted
tty: xilinx_uartps: Fix missing id assignment to the console
When serial console has been assigned to ttyPS1 (which is serial1 alias) console index is not updated property and pointing to index -1 (statically initialized) which ends up in situation where nothing has been printed on the port. The commit 18cc7ac ("Revert "serial: uartps: Register own uart console and driver structures"") didn't contain this line which was removed by accident. Fixes: 18cc7ac ("Revert "serial: uartps: Register own uart console and driver structures"") Signed-off-by: Shubhrajyoti Datta <[email protected]> Cc: stable <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/ed3111533ef5bd342ee5ec504812240b870f0853.1588602446.git.michal.simek@xilinx.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 57d38f2 commit 2ae11c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/xilinx_uartps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,7 @@ static int cdns_uart_probe(struct platform_device *pdev)
14591459
cdns_uart_uart_driver.nr = CDNS_UART_NR_PORTS;
14601460
#ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE
14611461
cdns_uart_uart_driver.cons = &cdns_uart_console;
1462+
cdns_uart_console.index = id;
14621463
#endif
14631464

14641465
rc = uart_register_driver(&cdns_uart_uart_driver);

0 commit comments

Comments
 (0)