]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Support rs485 devicetree properties
authorLukas Wunner <lukas@wunner.de>
Fri, 28 Feb 2020 13:31:02 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2020 08:52:01 +0000 (09:52 +0100)
commitd7d165a95006822fb62e6818ca74077ce9407850
tree2be63355f6c96c566f7031080c76c419c741df05
parent8d985d2a4ba72ec36d889dbe91415a6394d877cf
serial: 8250: Support rs485 devicetree properties

Retrieve rs485 devicetree properties on registration of 8250 ports in
case they are attached to an rs485 transceiver.

If the property "linux,rs485-enabled-at-boot-time" is present, invoke
the ->rs485_config() callback to immediately deassert RTS, thereby
ceasing control of the bus.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Giulio Benetti <giulio.benetti@micronovasrl.com>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/5908ea89b7f9da54872d6634b606d83db032297a.1582895077.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_port.c