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)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 16 Aug 2016 12:25:06 +0000 (08:25 -0400)
commitcf61375fb14bbd7734c42df8a03e4efae6419583
tree3a064213ef7ae984b9e7c047bc85c383c350713d
parentebe139836e17beea5f6742f7c6e11a7cd9d053de
tty/serial: atmel: fix RS485 half duplex with DMA

[ Upstream commit 0058f0871efe7b01c6f2b3046c68196ab73e96da ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/tty/serial/atmel_serial.c