Commit e1ed7ac7 authored by Imre Deak's avatar Imre Deak Committed by Linus Torvalds

[PATCH] genirq: fix typo in IRQ resend

Fix a bug where the IRQ_PENDING flag is never cleared and the ISR is called
endlessly without an actual interrupt.
Signed-off-by: default avatarImre Deak <imre.deak@solidboot.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 63b98080
...@@ -63,8 +63,7 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq) ...@@ -63,8 +63,7 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq)
desc->chip->enable(irq); desc->chip->enable(irq);
if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
desc->status &= ~IRQ_PENDING; desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY;
desc->status = status | IRQ_REPLAY;
if (!desc->chip || !desc->chip->retrigger || if (!desc->chip || !desc->chip->retrigger ||
!desc->chip->retrigger(irq)) { !desc->chip->retrigger(irq)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment