]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/ipic: Fix status get and status clear
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 18 Oct 2017 09:16:47 +0000 (11:16 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 05:48:13 +0000 (16:48 +1100)
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>
arch/powerpc/sysdev/ipic.c

index 16f1edd78c40e52a126e2d40f70242e3f6c82533..535cf1f6941c01fd1b2b70b7e630cf2f8fea0e64 100644 (file)
@@ -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. */