Files
linux/drivers/mfd
Nishanth Menon 40788de827 mfd: Clear twl6030 IRQ status register only once
commit 3f8349e6e9 upstream.

TWL6030 family of PMIC use a shadow interrupt status register
while kernel processes the current interrupt event.
However, any write(0 or 1) to register INT_STS_A, INT_STS_B or
INT_STS_C clears all 3 interrupt status registers.

Since clear of the interrupt is done on 32k clk, depending on I2C
bus speed, we could in-adverently clear the status of a interrupt
status pending on shadow register in the current implementation.
This is due to the fact that multi-byte i2c write operation into
three seperate status register could result in multiple load
and clear of status and result in lost interrupts.

Instead, doing a single byte write to INT_STS_A register with 0x0
will clear all three interrupt status registers without the related
risk.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-13 08:14:08 -07:00
..
2011-03-23 10:41:43 +01:00
2012-03-12 10:33:10 -07:00
2011-05-24 22:19:37 +02:00
2011-03-31 11:26:23 -03:00
2011-03-27 00:09:51 +01:00
2011-03-23 10:42:03 +01:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00
2010-12-24 16:00:17 +01:00
2012-03-12 10:32:48 -07:00
2011-03-31 11:26:23 -03:00
2011-05-26 19:45:28 +02:00
2011-05-26 19:45:28 +02:00
2011-03-27 00:09:51 +01:00
2010-08-12 11:28:00 +02:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00
2010-08-12 11:27:59 +02:00
2011-03-31 11:26:23 -03:00
2011-03-23 10:41:59 +01:00
2011-05-26 19:45:20 +02:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00