serial: imx: Add support for RS485 RX_DURING_TX output GPIO
authorChristoph Niedermaier <cniedermaier@dh-electronics.com>
Fri, 2 Dec 2022 10:41:26 +0000 (11:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:01:35 +0000 (16:01 +0100)
commitca530cfa968c6fa197ee7df877a277954b87bad5
tree1a41e057ea9e8d043a811478ac533409338ea34d
parent163f080eb717d237f02d9a8c179b07ed31fdd6ad
serial: imx: Add support for RS485 RX_DURING_TX output GPIO

If a RX_DURING_TX GPIO is defined by the DT property "rs485-rx-during-tx-gpios"
this patch switches this GPIO accordingly to the RS485 flag RX_DURING_TX in user
space. In addition, the i.MX UART receiver is no longer turned on and off during
sending, because now the hardware is responsible for connecting or disconnecting
RX during TX controlled by this GPIO.

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Link: https://lore.kernel.org/r/20221202104127.122761-3-cniedermaier@dh-electronics.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c