]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: fix console problems on uart_close
authorRob Herring <robh@kernel.org>
Mon, 24 Oct 2016 20:56:49 +0000 (15:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:02:13 +0000 (16:02 +0200)
commit869fddf4bc20622d1438125c76fa25c220cac722
treea4b5cb34a16404444fa81028992de0e8fdc1c04a
parent5b605489fe0ae7bf1f1cab4e0f83eecadf80d794
serial: core: fix console problems on uart_close

Commit 812655d0392e ('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 812655d0392e and drop reporting UART tty_ports
as a console leaving the console handling to the serial_core as it was
before.

Fixes: 812655d0392e03c3 ("tty: serial_core: convert uart_close to use tty_port_close")
Reported-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reported-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Reported-by: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Peter Hurley <peter@hurleysoftware.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c