]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
rtc-twl4030: Fix periodic interrupt
authorJagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Fri, 5 Sep 2008 09:24:46 +0000 (14:54 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Sep 2008 17:33:48 +0000 (10:33 -0700)
commit589ccfa4dea1ce19f7ca96472fa32d4f3f1d39eb
tree79069d3db4bd76758890a8c28061f0cc226cd90e
parentecac18afe1cbab4532bcebb8e4a218dd2e058155
rtc-twl4030: Fix periodic interrupt

RTC generates an extra spurious interrupt for every actual periodic
interrupt. This is due to a problem with the RTC_IT bit of
REG_PWR_ISR1. It requires two writes or two reads (when COR is
enabled) to clear it. Since COR is enabled and one read of the same
register is done already (inside twl4030-pwrirq.c do_twl4030_pwrirq()
function), we can do away with a need to add one more write into the
same register inside the interrupt handler, by replacing the write
currently present with just one extra read.

Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/rtc/rtc-twl4030.c