diff options
author | Baruch Siach <baruch@tkos.co.il> | 2016-02-29 13:34:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 18:26:55 +0200 |
commit | 7d1cadca957d3c586fe71054ed843565013236d9 (patch) | |
tree | 617a186a73de93d8d81fa2c808584e1642288114 /usr | |
parent | serial: Make SERIAL_MVEBU_UART depend on ARCH_MVEBU (diff) | |
download | linux-7d1cadca957d3c586fe71054ed843565013236d9.tar.xz linux-7d1cadca957d3c586fe71054ed843565013236d9.zip |
serial: imx: support RS-485 Rx disable on Tx
Some RS-232 to RS-485 transceivers require Rx to be disabled on Tx to
avoid echo of Tx data into the Rx buffer. Specifically, the XR3160E
RS-232/RS-485/RS-422 transceiver behaves this way.
This commit disables Rx on active Tx when SER_RS485_ENABLED is active and
SER_RS485_RX_DURING_TX is disabled.
Note that this is a change in behavior of the driver. Until now
SER_RS485_RX_DURING_TX was enabled unconditionally even when disabled in
the TIOCSRS485 ioctl serial_rs485 flags field.
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions