Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226023
b: refs/heads/master
c: bd77efd
h: refs/heads/master
i:
  226021: ccbc12c
  226019: ae61558
  226015: e52f4e4
v: v3
  • Loading branch information
Sundar Iyer authored and Linus Walleij committed Dec 19, 2010
1 parent 3733720 commit eb7e51a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 611b7590afa6e6c6b0942b1d3efef17fbb348ef5
refs/heads/master: bd77efd0cea80865d4cfcc1e4b62789c51a74b2d
8 changes: 6 additions & 2 deletions trunk/drivers/mfd/tc3589x.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static irqreturn_t tc3589x_irq(int irq, void *data)
struct tc3589x *tc3589x = data;
int status;

again:
status = tc3589x_reg_read(tc3589x, TC3589x_IRQST);
if (status < 0)
return IRQ_NONE;
Expand All @@ -156,9 +157,12 @@ static irqreturn_t tc3589x_irq(int irq, void *data)
/*
* A dummy read or write (to any register) appears to be necessary to
* have the last interrupt clear (for example, GPIO IC write) take
* effect.
* effect. In such a case, recheck for any interrupt which is still
* pending.
*/
tc3589x_reg_read(tc3589x, TC3589x_IRQST);
status = tc3589x_reg_read(tc3589x, TC3589x_IRQST);
if (status)
goto again;

return IRQ_HANDLED;
}
Expand Down

0 comments on commit eb7e51a

Please sign in to comment.