]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite405b421e2f492f7c2883fb3d3b4483208a0a8b5
tree8dd36503702183fb15f5e783249433c9880e45ee
parent3c0bedbb8d531ce1facd1eeddb7a2afc31e54abc
[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