]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
TWL4030: clear MADC interrupt status registers upon init
authorPaul Walmsley <paul@pwsan.com>
Tue, 22 Jul 2008 23:51:30 +0000 (17:51 -0600)
committerTony Lindgren <tony@atomide.com>
Mon, 4 Aug 2008 14:13:14 +0000 (17:13 +0300)
twl_init_irq() does not clear MADC interrupt status registers upon init -
fix.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-core.c

index bb0732c652178c93b38391cc202c0b402cdd83f8..9d93524c809da822460573b2300932f7a92a0602 100644 (file)
@@ -821,6 +821,20 @@ static void twl_init_irq(void)
                return;
        }
 
+       /* MADC_ISR1 */
+       res = twl4030_i2c_write_u8(TWL4030_MODULE_MADC, 0xFF, 0x61);
+       if (res < 0) {
+               pr_err("%s[%d][%d]\n", msg, res, __LINE__);
+               return;
+       }
+
+       /* MADC_ISR2 */
+       res = twl4030_i2c_write_u8(TWL4030_MODULE_MADC, 0xFF, 0x63);
+       if (res < 0) {
+               pr_err("%s[%d][%d]\n", msg, res, __LINE__);
+               return;
+       }
+
        /* key Pad */
        /* KEYPAD - IMR1 */
        res = twl4030_i2c_write_u8(TWL4030_MODULE_KEYPAD, 0xFF, (0x12));