]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: atmel: fix TX path in atmel_console_write()
authorNicolas Ferre <nicolas.ferre@microchip.com>
Mon, 20 Mar 2017 15:38:57 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2017 15:26:20 +0000 (17:26 +0200)
commit6967a0e315ad8eb8bb0b93e112c432690c2d84ca
tree14ca17b3b9cf8f85cb328ffda06acd299c05b1d5
parent205c75f7f9a3897aff847913a12aa406a787de12
tty/serial: atmel: fix TX path in atmel_console_write()

A side effect of 17d2dff4057f ("tty/serial: atmel_serial: BUG: stop DMA
from transmitting in stop_tx") is that the console can be called with
TX path disabled. Then the system would hang trying to push charecters
out in atmel_console_putchar().

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Fixes: 17d2dff4057f ("tty/serial: atmel_serial: BUG: stop DMA from transmitting
in stop_tx")
Cc: stable <stable@vger.kernel.org> #4.4+
Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c