]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2c1de1aa64bc2b19e6f97ff3861a3cbb689a79e
treee92a37aa1d8a0931aff920f30433d45c9271b93f
parent1ee1137722c3d5090fa53b4acbe288f5b7577c2f
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