amba-pl011: do not disable RTS during shutdown
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Wed, 18 Jan 2012 10:23:59 +0000 (15:53 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 00:09:55 +0000 (16:09 -0800)
commitd8d8ffa477831b713ddfa2ad4d0ca545f3b567e5
treee92a37aa1d8a0931aff920f30433d45c9271b93f
parent43cf7c0bebf50d0b68aa42ae6d24cf08e3f24823
amba-pl011: do not disable RTS during shutdown

In present driver, shutdown clears RTS and DTR in CR register. But the
documentation "Documentation/serial/driver" suggests not to disable
RTS and DTR in shutdown(). Also RTS and DTR is preserved between shutdown
and startup calls, i.e. these are restored in startup if they were enabled
while doing shutdown. So that if RTS and DTR are set using pl011_set_mctrl
then it should continue even after shutdown->startup sequence.
For throttling/unthrottling user should call pl011_set_mctrl.

Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/amba-pl011.c