Skip to content

Commit be2c92b

Browse files
robherringgregkh
authored andcommitted
serial: core: fix console problems on uart_close
Commit 761ed4a ('tty: serial_core: convert uart_close to use tty_port_close') started setting the ttyport console flag for serial drivers. This is causing crashes, hangs, or garbage output on several platforms because the serial shutdown is skipped and IRQs are left enabled. Partially revert commit 761ed4a and drop reporting UART tty_ports as a console leaving the console handling to the serial_core as it was before. Fixes: 761ed4a ("tty: serial_core: convert uart_close to use tty_port_close") Reported-by: Niklas Söderlund <[email protected]> Reported-by: Mike Galbraith <[email protected]> Reported-by: Mugunthan V N <[email protected]> Cc: Peter Hurley <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Alan Cox <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 09065c5 commit be2c92b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/tty/serial/serial_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,8 +2746,6 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport)
27462746
uport->cons = drv->cons;
27472747
uport->minor = drv->tty_driver->minor_start + uport->line;
27482748

2749-
port->console = uart_console(uport);
2750-
27512749
/*
27522750
* If this port is a console, then the spinlock is already
27532751
* initialised.

0 commit comments

Comments
 (0)