serial: of-serial: add PM suspend/resume support
authorJingchang Lu <jingchang.lu@freescale.com>
Tue, 11 Nov 2014 07:09:05 +0000 (15:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:40 +0000 (17:06 -0800)
commit8ad3b1352693972b737607c7b9c89b56d45fea9b
tree97e18010e637f02ad4740511d8e43837d2b88e72
parent261119f727a4c7cfc001eed0d94cea70e662433a
serial: of-serial: add PM suspend/resume support

This adds suspend/resume support for the of-serial driver
to provide power management support on devices attatched.

The handling may vary since not every of_serial device is
an 8250 port. Currently only 8250 port handling is added
in the suspend/resume function based on the type switch.

Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Florina Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c