serial: omap: don't disable rs485 if rts gpio is missing
authorDario Binacchi <dariobin@libero.it>
Thu, 15 Apr 2021 21:09:45 +0000 (23:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Apr 2021 10:06:59 +0000 (12:06 +0200)
commit45f6b6db53c80787b79044629b062dfcf2da71ec
tree1886b608da7753f50e6e43e0e82f54450dd828eb
parentcea37afd28f1bb7ca09a0c27e75f89cf2df9147d
serial: omap: don't disable rs485 if rts gpio is missing

There are rs485 transceivers (e.g. MAX13487E/MAX13488E) which
automatically disable or enable the driver and receiver to keep the bus
in the correct state.
In these cases we don't need a GPIO for flow control.

Fixes: 4a0ac0f55b18 ("OMAP: add RS485 support")
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Link: https://lore.kernel.org/r/20210415210945.25863-1-dariobin@libero.it
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c