]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: omap: empty the RX FIFO at the end of half-duplex TX
authorDimitris Lampridis <dlampridis@logikonlabs.com>
Thu, 13 Mar 2014 13:11:47 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:23:08 +0000 (16:23 -0700)
commitd207488449b69087cb1653dd7866e941ea253d48
treecbcef87f044116fcc7dbbcf5df42c7761f9f0076
parent6f582ed4cca6f979186b9153761dd8c6c1e51750
tty/serial: omap: empty the RX FIFO at the end of half-duplex TX

Provided that the SER_RS485_RX_DURING_TX flag is not set, empty the
RX FIFO to prevent reading back the transmitted data.

Signed-off-by: Dimitris Lampridis <dlampridis@logikonlabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c