diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-11-29 06:42:12 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-30 12:20:48 +0100 |
commit | 0582c0fafc36e4a1f2067ea8377c9902cc7997bf (patch) | |
tree | 4eeee285894e4931306c5c1288feee720115350d /drivers/mfd | |
parent | 0e5fca8106199f5c680bb93e75c16381c4c256ce (diff) | |
download | talos-obmc-linux-0582c0fafc36e4a1f2067ea8377c9902cc7997bf.tar.gz talos-obmc-linux-0582c0fafc36e4a1f2067ea8377c9902cc7997bf.zip |
mfd: tps65910: Fix wrong ack_base register
The interrupt status registers of TPS65910/1 should be cleared
when the associated interrupt event occurs.
This work is done in the regmap irq thread - using 'ack_base' register.
The ACK registers should be fixed as status register, not mask registers.
This patch fixes the infinite interrupt event problem by clearing
interrupt status registers.
Tested on the AM3517 Craneboard.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tps65910.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index c160c2d76f79..d5ef3a5b16b1 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -211,7 +211,7 @@ static struct regmap_irq_chip tps65911_irq_chip = { .irq_reg_stride = 2, .status_base = TPS65910_INT_STS, .mask_base = TPS65910_INT_MSK, - .ack_base = TPS65910_INT_MSK, + .ack_base = TPS65910_INT_STS, }; static struct regmap_irq_chip tps65910_irq_chip = { @@ -222,7 +222,7 @@ static struct regmap_irq_chip tps65910_irq_chip = { .irq_reg_stride = 2, .status_base = TPS65910_INT_STS, .mask_base = TPS65910_INT_MSK, - .ack_base = TPS65910_INT_MSK, + .ack_base = TPS65910_INT_STS, }; static int tps65910_irq_init(struct tps65910 *tps65910, int irq, |