]> git.baikalelectronics.ru Git - kernel.git/commit
m68k/mac: Add mutual exclusion for IOP interrupt polling
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 27 Oct 2017 02:45:24 +0000 (22:45 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 9 Nov 2017 22:02:57 +0000 (23:02 +0100)
commitb49836836e077ff988970ddaaeea8fda7bf27a64
treee06ac4b6dd750c56f16f8c29e2a58a9eb855da1a
parentf7243a9a1504f90049b40fb25c46db013bafc3d2
m68k/mac: Add mutual exclusion for IOP interrupt polling

The IOP interrupt handler iop_ism_irq() is used by the adb-iop
driver to poll for ADB request completion. Unfortunately, it is not
re-entrant. Fix the race condition by adding an iop_ism_irq_poll()
function with suitable mutual exclusion.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/mac_iop.h
arch/m68k/mac/iop.c
drivers/macintosh/adb-iop.c