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)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Feb 2017 18:23:52 +0000 (19:23 +0100)
commite3ccc921b7d8fd1fcd10a00720e09823d8078666
tree29334e01278970ba79ec4b28b432ada45fb5a9da
parentababb08938df7ac245d30a58b95b94ecf8dc04fc
i2c: at91: ensure state is restored after suspending

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>
drivers/i2c/busses/i2c-at91.c