]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit12429cafd3265d251f666d6da8ffe734f1a6e453
tree2481249f304a34fbff2db433b955178face86026
parenta76248f1d313ad10434136cbec4d404f112f9f68
[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