OSDN Git Service

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, 20 Aug 2016 16:09:17 +0000 (18:09 +0200)
commit580b1bbcc94e37d24e7469b3778338e4e988b190
tree230627e98891a2e4681e65baacdae62be13513f3
parent8af97d26ce2054f4914eb382be2ab1d7c994b190
tty/serial: atmel: fix RS485 half duplex with DMA

commit 0058f0871efe7b01c6f2b3046c68196ab73e96da 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>
drivers/tty/serial/atmel_serial.c