]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb35561d062981ea6f93ca576a451615ce56eca05
tree426c7d1b4398cbf2b516a0728eed5c791bb1e269
parent35e274c95116eec934970f03a8b60db6d7fd59d0
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