Skip to content

Commit

Permalink
mfd: Apply irq_mask_cur before handling max77686 interrupts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yadwinder Singh Brar authored and Samuel Ortiz committed Jul 9, 2012
1 parent 84d70ee commit 9bdf9b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mfd/max77686-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ static irqreturn_t max77686_irq_thread(int irq, void *data)

}

for (i = 0; i < MAX77686_IRQ_GROUP_NR; i++)
irq_reg[i] &= ~max77686->irq_masks_cur[i];

for (i = 0; i < MAX77686_IRQ_NR; i++) {
if (irq_reg[max77686_irqs[i].group] & max77686_irqs[i].mask) {
cur_irq = irq_find_mapping(max77686->irq_domain, i);
Expand Down

0 comments on commit 9bdf9b4

Please sign in to comment.