Commit 2a613c50 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

ipipe: Activate IRQ in ipipe_enable_irq

Likely needed since c942cee4

 which split enabling and startup.

This fixes unpopulated vectors in the IOAPIC on x86 at least, possibly
more.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 14adddc0
......@@ -1151,6 +1151,7 @@ int ipipe_enable_irq(unsigned int irq)
struct irq_desc *desc;
struct irq_chip *chip;
unsigned long flags;
int err;
desc = irq_to_desc(irq);
if (desc == NULL)
......@@ -1162,6 +1163,10 @@ int ipipe_enable_irq(unsigned int irq)
ipipe_root_only();
err = irq_activate(desc);
if (err)
return err;
raw_spin_lock_irqsave(&desc->lock, flags);
if (desc->istate & IPIPE_IRQS_NEEDS_STARTUP) {
desc->istate &= ~IPIPE_IRQS_NEEDS_STARTUP;
......
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