]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: core: Consider rs485 settings to drive RTS
authorRafael Gago <rafael.gago@gmail.com>
Mon, 31 Jul 2017 08:46:42 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:20 +0000 (20:51 +0200)
commita6845e1e1b781933ed7f54919f5ea4a108d1b9f2
treeee9aeb8d87596db4032ec82f35f112ce6d64a8e0
parentd77dc47fce23daf57f60cb407698108229a33e8c
serial: core: Consider rs485 settings to drive RTS

Previously the rs485 settings weren't considered when setting the RTS
line, so e.g. closing and reopening a port made serial_core to drive
the line as if rs485 was disabled.

This patch fixes those issues.

Signed-off-by: Rafael Gago Castano <rgc@hms.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c