]> git.karo-electronics.de Git - linux-beck.git/commit
serial: of-serial: fix up PM ops on no_console_suspend and port type
authorJingchang Lu <jingchang.lu@freescale.com>
Wed, 15 Oct 2014 06:19:27 +0000 (14:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:23:34 +0000 (16:23 -0800)
commit513e438581020334e0345561adeeeaefa36701be
tree5a755b4e2efd5d19fcd252aff414f251b2fee2ea
parent369e2b84e4eed08e5368abc3bc4277d500a186ea
serial: of-serial: fix up PM ops on no_console_suspend and port type

This patch fixes commit 2dea53bf57783f243c892e99c10c6921e956aa7e,
"serial: of-serial: add PM suspend/resume support", which disables
the uart clock on suspend, but also causes a hardware hang on register
access if no_console_suspend command line option is used.

Also, not every of_serial device is an 8250 port, so the serial8250
suspend/resume functions should only be applied to a real 8250 port.

Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com>
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c