Skip to content

Commit

Permalink
ARM: OMAP: smartreflex: fix IRQ handling bug
Browse files Browse the repository at this point in the history
Fix a bug which has been on this driver since
it was added by the original commit 984aa6d
which would never clear IRQSTATUS bits.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Felipe Balbi authored and Tony Lindgren committed Nov 23, 2011
1 parent 46232a3 commit 5a4f184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/smartreflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static irqreturn_t sr_interrupt(int irq, void *data)
sr_write_reg(sr_info, ERRCONFIG_V1, status);
} else if (sr_info->ip_type == SR_TYPE_V2) {
/* Read the status bits */
sr_read_reg(sr_info, IRQSTATUS);
status = sr_read_reg(sr_info, IRQSTATUS);

/* Clear them by writing back */
sr_write_reg(sr_info, IRQSTATUS, status);
Expand Down

0 comments on commit 5a4f184

Please sign in to comment.