]> Pileus Git - ~andy/linux/commitdiff
ARM: OMAP: smartreflex: fix IRQ handling bug
authorFelipe Balbi <balbi@ti.com>
Wed, 23 Nov 2011 22:43:37 +0000 (14:43 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 23 Nov 2011 22:43:37 +0000 (14:43 -0800)
Fix a bug which has been on this driver since
it was added by the original commit 984aa6db
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>
arch/arm/mach-omap2/smartreflex.c

index 6a4f6839a7d93fecc95259506c3ea38962a3ba5a..cf246b39bac745dc315576ecc161c35666643381 100644 (file)
@@ -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);