]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Nov 2011 16:43:09 +0000 (08:43 -0800)
commit2040e10cdd68f335dca6dcd4fed277d73744413f
treec455a00601de4deeb4d9cc759e8b527ca574293a
parentf290a1cc9105a2d3e688ea4c9616fdcb0b6243f1
genirq: fix regression in irqfixup, irqpoll

Commit 9499d0af7550("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, 7a235a975815, 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>
Cc: stable@kernel.org (2.6.39+)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/irq/spurious.c