Commit 7ad94699 authored by Finn Thain's avatar Finn Thain Committed by Michael Ellerman

macintosh/via-pmu: Don't clear shift register interrupt flag twice

The shift register interrupt flag gets cleared in via_pmu_interrupt()
and once again in pmu_sr_intr(). Fix this theoretical race condition.
Tested-by: default avatarStan Johnson <>
Signed-off-by: default avatarFinn Thain <>
Reviewed-by: default avatarGeert Uytterhoeven <>
Signed-off-by: Michael Ellerman's avatarMichael Ellerman <>
parent 576d5290
......@@ -1421,7 +1421,6 @@ pmu_sr_intr(void)
if (in_8(&via[B]) & TREQ) {
printk(KERN_ERR "PMU: spurious SR intr (%x)\n", in_8(&via[B]));
out_8(&via[IFR], SR_INT);
return NULL;
/* The ack may not yet be low when we get the interrupt */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment