]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86be7f61da7b48e8da4ec2382418951a39dd798e
tree02c785e04f7d7aecf6166f92e240302c725a3e86
parentf9e58089835d1ead3a075e6fbb8f64020e0c6ba0
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