OSDN Git Service

macintosh/via-pmu: Don't clear shift register interrupt flag twice
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 2 Jul 2018 08:21:18 +0000 (04:21 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:39 +0000 (19:56 +1000)
commit7ad94699a94b388780e40158e6954a22b68e9d20
treebdb6d223ab8fd49464ffe2c3cd8389d210de4e4d
parent576d5290d678a651b9f36050fc1717e0573aca13
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: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/via-pmu.c