[PATCH] irqchip/mips-gic: Add missing shared interrupt handler

From: jrjang
Date: Wed Jul 05 2017 - 13:41:33 EST


From: Jun-Ru Chang <jrjang@xxxxxxxxx>

Set handle_level_irq handler for shared interrupts to avoid hanging with
"unexpected IRQ" messages display.

Change-Id: I6b9c0e8a13b28361f2daf89609f48cbdd397eb36
Signed-off-by: Jun-Ru Chang <jrjang@xxxxxxxxx>
---
drivers/irqchip/irq-mips-gic.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c
index 929f8558bf1c..0a5fb30deb17 100644
--- a/drivers/irqchip/irq-mips-gic.c
+++ b/drivers/irqchip/irq-mips-gic.c
@@ -716,6 +716,7 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int virq,
if (err)
return err;

+ irq_set_handler(virq, handle_level_irq);
return gic_shared_irq_domain_map(d, virq, hwirq, 0);
}

--
2.13.2