[PATCH] serial: make sure UART is powered up when dumping MCTRL status
authorGeorge G. Davis <gdavis@mvista.com>
Wed, 14 Feb 2007 08:33:06 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:52 +0000 (08:09 -0800)
commit3689a0ec60bc8f56cc372c1dfa0d89dab48f7c9c
tree2481249f304a34fbff2db433b955178face86026
parent9b22271d4b8c1be8a81563c322d3f04e7cbe2153
[PATCH] serial: make sure UART is powered up when dumping MCTRL status

Since serial devices are powered down when not in use and some of those
devices cannot be accessed when powered down, we need to enable power
around calls to get_mcrtl() when dumping port state via uart_line_info().
This resolves hangs observed on some machines while reading serial device
registers when a port is powered off.

Signed-off-by: George G. Davis <gdavis@mvista.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_core.c