[POWERPC] Add workaround for MPICs with broken register reads
authorOlof Johansson <olof@lixom.net>
Fri, 7 Sep 2007 19:13:19 +0000 (05:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Sep 2007 15:33:25 +0000 (01:33 +1000)
commit0d72ba930cbc9140a584af7e4e65041b6c7a7d18
tree8dd36503702183fb15f5e783249433c9880e45ee
parent2099172d61abda1b793b499bb8edcaac4de2cdae
[POWERPC] Add workaround for MPICs with broken register reads

Some versions of PWRficient 1682M have an interrupt controller in which
the first register in each pair for interrupt sources doesn't always
read with the right polarity/sense values.

To work around this, keep a software copy of the register instead.  Since
it's not modified from the mpic itself, it's a feasible solution.  Still,
keep it under a config option to avoid wasting memory on other platforms.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/Kconfig
arch/powerpc/platforms/pasemi/Kconfig
arch/powerpc/sysdev/mpic.c
include/asm-powerpc/mpic.h