Skip to content

Commit 9bdf9b4

Browse files
Yadwinder Singh BrarSamuel Ortiz
authored andcommitted
mfd: Apply irq_mask_cur before handling max77686 interrupts
According to TRM, though we mask the interrupts in interrupt-mask register, interrupt source-register still provide the status of the masked interrupts. So we should apply irq_mask_cur to read interrupt source-register value before handling. Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 84d70ee commit 9bdf9b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/mfd/max77686-irq.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ static irqreturn_t max77686_irq_thread(int irq, void *data)
208208

209209
}
210210

211+
for (i = 0; i < MAX77686_IRQ_GROUP_NR; i++)
212+
irq_reg[i] &= ~max77686->irq_masks_cur[i];
213+
211214
for (i = 0; i < MAX77686_IRQ_NR; i++) {
212215
if (irq_reg[max77686_irqs[i].group] & max77686_irqs[i].mask) {
213216
cur_irq = irq_find_mapping(max77686->irq_domain, i);

0 commit comments

Comments
 (0)