irqchip.mips-gic: Fix shared interrupt mask writes
authorPaul Burton <paul.burton@imgtec.com>
Tue, 5 Sep 2017 18:28:46 +0000 (11:28 -0700)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Sep 2017 18:44:07 +0000 (19:44 +0100)
commit90019f8fcd71bf71653690329e32f41489e96122
treeca15fe3bb005dda2f7e415ee71b565ced683b936
parent6c09ffd027255d97c536aa4ac51a90973adfedc6
irqchip.mips-gic: Fix shared interrupt mask writes

The write_gic_smask() & write_gic_rmask() functions take a shared
interrupt number as a parameter, but we're incorrectly providing them a
bitmask with the shared interrupt's bit set. This effectively means that
we mask or unmask the shared interrupt 1<<n rather than shared interrupt
n, and as a result likely drop interrupts.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Fixes: 68898c8765f4 ("irqchip: mips-gic: Drop gic_(re)set_mask() functions")
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mips-gic.c