OSDN Git Service

atmel_flexcom: Support resuming after a chip reset
authorRomain Izard <romain.izard.pro@gmail.com>
Tue, 12 Dec 2017 16:21:19 +0000 (17:21 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 8 Jan 2018 11:03:35 +0000 (11:03 +0000)
commit7fdec11015c374a6f0b29ceccf35f559c2208042
tree5807f61ff756b297983767f7b92b11e8c5429709
parent63fb9cb51da257e48af9db6bbfe4ace8ade04ff3
atmel_flexcom: Support resuming after a chip reset

The controller used by a flexcom module is configured at boot, and left
alone after this. In the suspend mode called "backup with self-refresh"
available on SAMA5D2, the chip will resume with most of its registers
reset. In this case, we need to restore the state of the flexcom driver
on resume.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/atmel-flexcom.c