tty/serial: atmel: ensure state is restored after suspending
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 3 Feb 2017 22:53:16 +0000 (23:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:10:16 +0000 (15:10 +0100)
commit6a5f0e2f9352accf857f683518bd3cc6ef6ae6c6
tree426c7d1b4398cbf2b516a0728eed5c791bb1e269
parent424d79183af07fbcb8059f9e86efc9ff8b346c75
tty/serial: atmel: ensure state is restored after suspending

When going to suspend, the UART registers may be lost because the power to
VDDcore is cut. This is not an issue in the normal case but when
no_console_suspend is used, we need to restore the registers in order to
get a functional console.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Reviewed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c