diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-02-08 11:57:52 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-02-15 11:56:59 +0100 |
commit | b4bc724e82e80478cba5fe9825b62e71ddf78757 (patch) | |
tree | 81f2ba0bcbb1ac50837c1c0e5ae8b606e22d47da /kernel/irq/internals.h | |
parent | ac5637611150281f398bb7a47e3fcb69a09e7803 (diff) | |
download | op-kernel-dev-b4bc724e82e80478cba5fe9825b62e71ddf78757.zip op-kernel-dev-b4bc724e82e80478cba5fe9825b62e71ddf78757.tar.gz |
genirq: Handle pending irqs in irq_startup()
An interrupt might be pending when irq_startup() is called, but the
startup code does not invoke the resend logic. In some cases this
prevents the device from issuing another interrupt which renders the
device non functional.
Call the resend function in irq_startup() to keep things going.
Reported-and-tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index b795231..40378ff 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h @@ -67,7 +67,7 @@ extern int __irq_set_trigger(struct irq_desc *desc, unsigned int irq, extern void __disable_irq(struct irq_desc *desc, unsigned int irq, bool susp); extern void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume); -extern int irq_startup(struct irq_desc *desc); +extern int irq_startup(struct irq_desc *desc, bool resend); extern void irq_shutdown(struct irq_desc *desc); extern void irq_enable(struct irq_desc *desc); extern void irq_disable(struct irq_desc *desc); |