Skip to content

Commit e51d5d0

Browse files
kolerovvineetgarc
authored andcommitted
ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP
It is necessary to call entry/exit functions for parent interrupt controllers for proper masking/unmasking of interrupt lines. Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 2163266 commit e51d5d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/arc/kernel/mcip.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/smp.h>
1212
#include <linux/irq.h>
13+
#include <linux/irqchip/chained_irq.h>
1314
#include <linux/spinlock.h>
1415
#include <soc/arc/mcip.h>
1516
#include <asm/irqflags-arcv2.h>
@@ -221,10 +222,13 @@ static irq_hw_number_t idu_first_hwirq;
221222
static void idu_cascade_isr(struct irq_desc *desc)
222223
{
223224
struct irq_domain *idu_domain = irq_desc_get_handler_data(desc);
225+
struct irq_chip *core_chip = irq_desc_get_chip(desc);
224226
irq_hw_number_t core_hwirq = irqd_to_hwirq(irq_desc_get_irq_data(desc));
225227
irq_hw_number_t idu_hwirq = core_hwirq - idu_first_hwirq;
226228

229+
chained_irq_enter(core_chip, desc);
227230
generic_handle_irq(irq_find_mapping(idu_domain, idu_hwirq));
231+
chained_irq_exit(core_chip, desc);
228232
}
229233

230234
static int idu_irq_map(struct irq_domain *d, unsigned int virq, irq_hw_number_t hwirq)

0 commit comments

Comments
 (0)