From f405fb3b4fef48f4b37f288d89b3ebaf88eadcb7 Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Tue, 22 Jul 2008 17:51:30 -0600 Subject: [PATCH] TWL4030: clear MADC interrupt status registers upon init twl_init_irq() does not clear MADC interrupt status registers upon init - fix. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- drivers/i2c/chips/twl4030-core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c index bb0732c6521..9d93524c809 100644 --- a/drivers/i2c/chips/twl4030-core.c +++ b/drivers/i2c/chips/twl4030-core.c @@ -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)); -- 2.41.1