serial: imx: add hibernation support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 1 Nov 2017 12:51:41 +0000 (13:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Nov 2017 11:13:45 +0000 (12:13 +0100)
commit94be6d74d040c614a332555f5b6d57c26dc272fc
treee1260465bca2db039fb9a9f9da656e69d81b998f
parent2a76fa2830981e15bfa33c2b0e5f2dfd35b0455c
serial: imx: add hibernation support

During hibernation, freeze/thaw/restore dev_pm_ops are called instead of
suspend/resume. Hook up the hibernation ops. The _noirq parts are
identical, but suspend/resume are replaced with variants that do not
enable wakeup from i.MX UART. There is no need to restore register
contents in thaw_noirq.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c