serial: omap_8250: Fix RTS handling, part B
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 31 Dec 2014 21:32:49 +0000 (16:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:10:46 +0000 (14:10 -0800)
commit3e29af27c4686d9cb401a63c7eeb6376662b13c1
tree8e956bb23cf62dd34bb22ba35ad4a0238e82060d
parent4bf4ea9dca4ba1984abeb592f429265b9bacac42
serial: omap_8250: Fix RTS handling, part B

Because the OMAP3 UART ignores MCR[1] (RTS) in autoRTS mode, autoRTS
mode must not be enabled unless RTS is set (or port->mctrl & TIOCM_RTS,
which is equivalent).

Fixes premature raising of RTS in omap_8250_set_termios() -- RTS was
raised even before UART mode was selected.
Fixes raise of RTS after port has been shutdown; omap_8250_pm() re-enabled
RTS after omap_8250_shutdown().

Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c