mfd: da9052/53 lockup fix
authorAshish Jangam <ashish.jangam@kpitcummins.com>
Fri, 25 Jan 2013 08:33:49 +0000 (14:03 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 27 Jan 2013 00:35:32 +0000 (01:35 +0100)
commit0a8c290ac58a86d5e1f2193abcd4d74ec075e20c
tree02c785e04f7d7aecf6166f92e240302c725a3e86
parentab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0
mfd: da9052/53 lockup fix

An issue has been reported where the PMIC either locks up or fails to
respond following a system Reset. This could result in a second write
in which the bus writes the current content of the write buffer to address
of the last I2C access.

The failure case is where this unwanted write transfers incorrect data to
a critical register.

This patch fixes this issue to by following any read or write with a dummy read
to a safe register address. A safe register address is one where the contents
will not affect the operation of the system.

Signed-off-by: Ashish Jangam <ashish.jangam@kpitcummins.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/da9052-i2c.c
include/linux/mfd/da9052/da9052.h
include/linux/mfd/da9052/reg.h