]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5e8bdd8c460f9888aad0e51dab2432654fe70f1
tree29334e01278970ba79ec4b28b432ada45fb5a9da
parentf5f7d1b7cfe8bd2b21ee29bd21336ec13e5c12ec
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