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)
commit3a13884abea08a5043b98d9374486ec859d1e03a
treecbcef87f044116fcc7dbbcf5df42c7761f9f0076
parentcab53dc9e20f74fbd4776ea584ba3b21c957b1a8
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