提交 0582c0fa 编写于 作者: K Kim, Milo 提交者: Samuel Ortiz

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: NMilo(Woogyom) Kim <milo.kim@ti.com>
Acked-by: NLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 0e5fca81
...@@ -211,7 +211,7 @@ static struct regmap_irq_chip tps65911_irq_chip = { ...@@ -211,7 +211,7 @@ static struct regmap_irq_chip tps65911_irq_chip = {
.irq_reg_stride = 2, .irq_reg_stride = 2,
.status_base = TPS65910_INT_STS, .status_base = TPS65910_INT_STS,
.mask_base = TPS65910_INT_MSK, .mask_base = TPS65910_INT_MSK,
.ack_base = TPS65910_INT_MSK, .ack_base = TPS65910_INT_STS,
}; };
static struct regmap_irq_chip tps65910_irq_chip = { static struct regmap_irq_chip tps65910_irq_chip = {
...@@ -222,7 +222,7 @@ static struct regmap_irq_chip tps65910_irq_chip = { ...@@ -222,7 +222,7 @@ static struct regmap_irq_chip tps65910_irq_chip = {
.irq_reg_stride = 2, .irq_reg_stride = 2,
.status_base = TPS65910_INT_STS, .status_base = TPS65910_INT_STS,
.mask_base = TPS65910_INT_MSK, .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, static int tps65910_irq_init(struct tps65910 *tps65910, int irq,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册