OSDN Git Service

i2c: at91: ensure state is restored after suspending
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 16 Feb 2017 17:27:59 +0000 (18:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2017 15:09:06 +0000 (17:09 +0200)
commitc128baf6a1bcc58590448ac4a7157e6428687110
tree30d1e27187c61db4203aea3772ad3cea3efc23a7
parentd7ecae7266986099a00595a017623d75d6d742bf
i2c: at91: ensure state is restored after suspending

[ Upstream commit e3ccc921b7d8fd1fcd10a00720e09823d8078666 ]

When going to suspend, the I2C registers may be lost because the power to
VDDcore is cut. Restore them when resuming.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-at91.c