tty/serial: atmel: fix RS485 half duplex with DMA

commit 0058f0871e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alexandre Belloni 2016-05-28 00:54:08 +02:00 • committed by Greg Kroah-Hartman
commit 580b1bbcc9