serial: core: Add option to output RS485 RX_DURING_TX state via GPIO
authorChristoph Niedermaier <cniedermaier@dh-electronics.com>
Fri, 2 Dec 2022 10:41:25 +0000 (11:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:01:35 +0000 (16:01 +0100)
commit163f080eb717d237f02d9a8c179b07ed31fdd6ad
tree89c8528fa505f8e9ad81efc982a57f6016c1976b
parent45c1d967a762ad8df7e1ccfa4a22dd77e2efa3b8
serial: core: Add option to output RS485 RX_DURING_TX state via GPIO

This patch provides a generic GPIO variable for outputting the state
of RS485 RX_DURING_TX. The GPIO is defined by the devicetree property
"rs485-rx-during-tx-gpios". To use it in a low level serial driver,
the evaluation of this variable must be implemented there accordingly.

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