serial: 8250: Start rs485 after registering port if rs485
From: Heiko Stuebner <heiko.stuebner@...> Date: Fri, 1 Jun 2018 14:40:16 +0200
Commit-Message
Before registering a port 8250 drivers may read devicetree information regarding rs485 emulation, but starting the em485 emulation at that point would only keep the em485 structure in the template uart port. Also at that point before the port is registered possible gpios for rts/dtr are not acquired yet as well. So simply check after acquiring the port if the rs485-enable flag is set and start the config callback in that case. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
drivers/tty/serial/8250/8250_core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
Statistics
- 9 lines added
- 0 lines removed