irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ
Subsystems (3)
PATCH RESEND v2 1/1 irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ
This is equivalent and works for arm64 as well.
---
Patch 1 of the arm64 series was left out of the 4.7 pull request. Would it be possible to merge this through the SOC tree? Otherwise I would need a stable branch to merge from you, so that I can land the Makefile changes to start building it.
drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/irq-bcm2835.c +1 -2
@@ -52,7 +52,6 @@#include <linux/irqdomain.h> #include <asm/exception.h> -#include <asm/mach/irq.h> /* Put the bank and irq (32 bits) into the hwirq */ #define MAKE_HWIRQ (b, n) ((b << 5) | (n))
@@ -242,7 +241,7 @@ static void __exception_irq_entry bcm2835_handle_irq(u32 hwirq;while ((hwirq =get_next_armctrl_hwirq ()) != ~0 ) -handle_IRQ (irq_linear_revmap (intc.domain, hwirq), regs); +handle_domain_irq (intc.domain, hwirq, regs); }static void bcm2836_chained_handle_irq (struct irq_desc *desc)
drivers/irqchip/irq-bcm2836.c +1 -1
@@ -180,7 +180,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs) }else if (stat) {u32 hwirq =ffs (stat) -1 ; -handle_IRQ (irq_linear_revmap (intc.domain, hwirq), regs); +handle_domain_irq (intc.domain, hwirq, regs); } }
Signature · 1 line
2.8.0.rc3
Eric,
Quoted 6 lines · Eric Anholt
This is equivalent and works for arm64 as well.
Signed-off-by Eric Anholt <[email protected]>Acked-by Stephen Warren <[email protected]>---
Quoted 8 lines
Patch 1 of the arm64 series was left out of the 4.7 pull request. Would it be possible to merge this through the SOC tree? Otherwise I would need a stable branch to merge from you, so that I can land the
Makefilechanges to start building it.drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
Sorry for the delay. I reworded the commit message to make up for it ;-) I've merged this into irqchip/bcm for you to base off of. Final version is appended.
thx,
Jason.
--------------------->8--------------------------
commit d7e3528eed85b51ddca2f281d2d4e7d687f28d60
Author: Eric Anholt <[email protected]> Date: Tue May 31 14:05:27 2016 -0700
irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ
With commit
76ba59f8366f genirq: Add irq_domain-aware core IRQ handler
architecture-specific irq handlers are no longer necessary. Update the bcm2835 irq driver to use the core irq handler. As a bonus, this allows the driver to support arm64 as well.
drivers/irqchip/irq-bcm2835.c +1 -2
@@ -52,7 +52,6 @@#include <linux/irqdomain.h> #include <asm/exception.h> -#include <asm/mach/irq.h> /* Put the bank and irq (32 bits) into the hwirq */ #define MAKE_HWIRQ (b, n) ((b << 5) | (n))
@@ -242,7 +241,7 @@ static void __exception_irq_entry bcm2835_handle_irq(u32 hwirq;while ((hwirq =get_next_armctrl_hwirq ()) != ~0 ) -handle_IRQ (irq_linear_revmap (intc.domain, hwirq), regs); +handle_domain_irq (intc.domain, hwirq, regs); }static void bcm2836_chained_handle_irq (struct irq_desc *desc)
drivers/irqchip/irq-bcm2836.c +1 -1
@@ -180,7 +180,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs) }else if (stat) {u32 hwirq =ffs (stat) -1 ; -handle_IRQ (irq_linear_revmap (intc.domain, hwirq), regs); +handle_domain_irq (intc.domain, hwirq, regs); } }