irqchip: orion: clear stale interrupts in irq_startup
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Thu, 23 Jan 2014 23:10:32 +0000 (00:10 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 6 Feb 2014 18:03:32 +0000 (18:03 +0000)
commite0318ec3bf3f1502cd11b21b1eb00aa355b40b67
tree8b2564dd13d7862ee0f11839a66c8c76eaddc208
parent5f40067fc86f0e49329ad4a852c278998ff4394e
irqchip: orion: clear stale interrupts in irq_startup

Bridge IRQ_CAUSE bits are asserted regardless of the corresponding bit in
IRQ_MASK register. To avoid interrupt events on stale irqs, we have to clear
them before unmask. This installs an .irq_startup callback to ensure stale
irqs are cleared before initial unmask.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: <stable@vger.kernel.org>: f56c0738b5c2: "irqchip: orion: clear bridge cause register on init"
Cc: <stable@vger.kernel.org>: 38bd80b84fca: "irqchip: orion: use handle_edge_irq on bridge irqs"
Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-orion.c