[PATCH 1/2] tty: serial_core: Fix serial console crash on port shutdown

2016-10-28 Thread Rob Herring
From: Geert Uytterhoeven The port->console flag is always false, as uart_console() is called before the serial console has been registered. Hence for a serial port used as the console, uart_tty_port_shutdown() will still be called when userspace closes the port,

[PATCH 1/2] tty: serial_core: Fix serial console crash on port shutdown

2016-10-28 Thread Rob Herring
From: Geert Uytterhoeven The port->console flag is always false, as uart_console() is called before the serial console has been registered. Hence for a serial port used as the console, uart_tty_port_shutdown() will still be called when userspace closes the port, powering it down. This may lead