]> git.itanic.dy.fi Git - linux-stable/commit
tty/serial: atmel: reschedule TX after RX was started
authorRazvan Stefanescu <razvan.stefanescu@microchip.com>
Tue, 13 Aug 2019 07:40:25 +0000 (10:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:19:43 +0000 (07:19 +0200)
commite5581ce3a688f8780a846f89a8543dea98faf3db
treeef48d32ddc31fa486c95214e5eeb4e4c57ac7ab5
parent2177f6383e59b9846a1b8cfb55881b9d9d102d23
tty/serial: atmel: reschedule TX after RX was started

commit d2ace81bf902a9f11d52e59e5d232d2255a0e353 upstream.

When half-duplex RS485 communication is used, after RX is started, TX
tasklet still needs to be  scheduled tasklet. This avoids console freezing
when more data is to be transmitted, if the serial communication is not
closed.

Fixes: 69646d7a3689 ("tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped")
Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190813074025.16218-1-razvan.stefanescu@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c