]> git.karo-electronics.de Git - karo-tx-linux.git/commit
genirq: fix regression in irqfixup, irqpoll
authorEdward Donovan <edward.donovan@numble.net>
Mon, 28 Nov 2011 04:07:34 +0000 (23:07 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:27 +0000 (08:52 -0800)
commit1c8ca629b774d8dd5fb85baf985f260cfcd68fc8
tree8779a2a6116853e9bca53df9814c81c43865f807
parent421f55945fb8515c6f322d20e9b0a2d390235e05
genirq: fix regression in irqfixup, irqpoll

commit 52553ddffad76ccf192d4dd9ce88d5818f57f62a upstream.

Commit fa27271bc8d2("genirq: Fixup poll handling") introduced a
regression that broke irqfixup/irqpoll for some hardware configurations.

Amidst reorganizing 'try_one_irq', that patch removed a test that
checked for 'action->handler' returning IRQ_HANDLED, before acting on
the interrupt.  Restoring this test back returns the functionality lost
since 2.6.39.  In the current set of tests, after 'action' is set, it
must precede '!action->next' to take effect.

With this and my previous patch to irq/spurious.c, c75d720fca8a, all
IRQ regressions that I have encountered are fixed.

Signed-off-by: Edward Donovan <edward.donovan@numble.net>
Reported-and-tested-by: Rogério Brito <rbrito@ime.usp.br>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/irq/spurious.c