]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: atmel: fix RS485 half duplex with DMA
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 27 May 2016 22:54:08 +0000 (00:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:40:22 +0000 (13:40 -0700)
commit1bd6a266188ec4dfc40f01fd921667eb2b8d7e59
tree7ac82c609e931a804409d339c2262ce3e0d748df
parentc5f9eb33826867d904b8bdaf1da4f97c84c7ae92
tty/serial: atmel: fix RS485 half duplex with DMA

When using DMA, half duplex doesn't work properly because rx is not stopped
before starting tx. Ensure we call atmel_stop_rx() in the DMA case.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c