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)
commit0058f0871efe7b01c6f2b3046c68196ab73e96da
tree7ac82c609e931a804409d339c2262ce3e0d748df
parent637ba54f6051903e1f0011b75ee36b2a29696c6d
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