]> git.karo-electronics.de Git - linux-beck.git/commit
i2c-mpc: avoid I2C abnormal after resuming from deep sleep
authorZhao Chenhui <chenhui.zhao@freescale.com>
Thu, 19 Apr 2012 09:51:34 +0000 (17:51 +0800)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:12 +0000 (14:28 +0200)
commit531183e5d27312d68fab40352cd13426aa761473
tree3e6ebe9104413dd8cae0fa85f04259364d2397ac
parentad33707417e4fa3dd4b12f9ed912e2349a984026
i2c-mpc: avoid I2C abnormal after resuming from deep sleep

When entering deep sleep, the value in the registers I2CFDR and
I2CDFSRR are lost. This causes I2C access to fail after resuming.

Add suspend/resume routines to save/restore the registers
I2CFDR and I2CDFSRR.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-mpc.c