diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-10-18 11:16:47 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-06 16:48:13 +1100 |
commit | 6b148a7ce72a7f87c81cbcde48af014abc0516a9 (patch) | |
tree | a715e3d44d192a3d1f46273bca98fb722227b1cb /arch/powerpc/sysdev/ipic.c | |
parent | d6f934fd48803d9e58040e2cbab2feafe9bb9f01 (diff) | |
download | op-kernel-dev-6b148a7ce72a7f87c81cbcde48af014abc0516a9.zip op-kernel-dev-6b148a7ce72a7f87c81cbcde48af014abc0516a9.tar.gz |
powerpc/ipic: Fix status get and status clear
IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR
which is the mask register.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/ipic.c')
-rw-r--r-- | arch/powerpc/sysdev/ipic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index 16f1edd..535cf1f6 100644 --- a/arch/powerpc/sysdev/ipic.c +++ b/arch/powerpc/sysdev/ipic.c @@ -846,12 +846,12 @@ void ipic_disable_mcp(enum ipic_mcp_irq mcp_irq) u32 ipic_get_mcp_status(void) { - return ipic_read(primary_ipic->regs, IPIC_SERMR); + return ipic_read(primary_ipic->regs, IPIC_SERSR); } void ipic_clear_mcp_status(u32 mask) { - ipic_write(primary_ipic->regs, IPIC_SERMR, mask); + ipic_write(primary_ipic->regs, IPIC_SERSR, mask); } /* Return an interrupt vector or 0 if no interrupt is pending. */ |