ipipe: drivers/irqchip/irq-vic.c: Fix problems with ipipe in VIC
Subsystems (2)
PATCH 1/1 ipipe: drivers/irqchip/irq-vic.c: Fix problems with ipipe in VIC
These changes are needed to enable the VIC interrupt handler for I-pipe usage. This patch version is for the "ipipe-3.18" branch in Philippes "ipipe" git respository. But a quick search reveals that such a fix very likely is needed for kernel version from v3.10 onward.
Tested on SPEAr600 based board with v3.18.
Signed-off-by Stefan Roese <[email protected]>
--- drivers/irqchip/irq-vic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-vic.c +2 -2
@@ -220,7 +220,7 @@ static int handle_one_vic(struct vic_device *vic, struct pt_regs *regs)while ((stat =readl_relaxed (vic->base +VIC_IRQ_STATUS ))) { irq =ffs (stat) -1 ; -handle_domain_irq (vic->domain, irq, regs); +ipipe_handle_multi_irq (irq_find_mapping (vic->domain, irq), regs); handled =1 ; }
@@ -237,7 +237,7 @@ static void vic_handle_irq_cascaded(unsigned int irq, struct irq_desc *desc)while ((stat =readl_relaxed (vic->base +VIC_IRQ_STATUS ))) { hwirq =ffs (stat) -1 ; -generic_handle_irq (irq_find_mapping (vic->domain, hwirq)); +ipipe_handle_demuxed_irq (irq_find_mapping (vic->domain, hwirq)); }chained_irq_exit (host_chip, desc);
Signature · 1 line
2.3.4
Philippe Gerum
AppliedQuoted 7 lines · Stefan Roese
These changes are needed to enable the VIC interrupt handler for I-pipe usage. This patch version is for the "ipipe-3.18" branch in Philippes "ipipe" git respository. But a quick search reveals that such a fix very likely is needed for kernel version from v3.10 onward.
Tested on SPEAr600 based board with v3.18.
Merged, thanks.
Signature · 1 line
Philippe.