]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:52 +0000 (17:13 +0100)
commit6b32598699db3b8f60ed3d2ffa50b880c95e1fd5
treee0566f781e4be8154e73a6d4e246c3e04133a3bd
parentf702de8127e146a0d21be1bd532959c9ef9f4977
irqchip: orion: clear stale interrupts in irq_startup

commit e0318ec3bf3f1502cd11b21b1eb00aa355b40b67 upstream.

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>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/irqchip/irq-orion.c