Skip to contentSkip to conversation

ARM: gic: Allow gic arch extensions to provide irqchip flags

PATCH In review Colin Cross 2 participants 3 messages Jun 13, 2011 – Jul 10, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: gic: Allow gic arch extensions to provide irqchip flags

Tegra can benefit from the IRQCHIP_MASK_ON_SUSPEND flag, allow it to be passed to the gic irq chip.

---
 arch/arm/common/gic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/common/gic.c +1 -0
index 8d62e07..a6c28a0 100644
@@ -576,6 +576,7 @@ void __init gic_init(unsigned int gic_nr, unsigned int irq_start,
 	if (gic_nr == 0)
 		gic_cpu_base_addr = cpu_base;
 
+	gic_chip.flags |= gic_arch_extn.flags;
 	gic_dist_init(gic, irq_start);
 	gic_cpu_init(gic);
 	gic_cpu_pm_init(gic);
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Colin Cross

Tegra can benefit from the IRQCHIP_MASK_ON_SUSPEND flag, allow it to be passed to the gic irq chip.

I missed this patch. Looks good to me and I think can be merged in rc as well.

Quoted 9 lines
---
  arch/arm/common/gic.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/common/gic.c +0 -0
index 8d62e07..a6c28a0 100644

arch/arm/common/gic.c void __init gic_init(unsigned int gic_nr, unsigned int irq_start, · line 582

Quoted 7 lines
arch/arm/common/gic.c +1 -0
@@ -576,6 +576,7 @@ void __init gic_init(unsigned int gic_nr, unsigned int irq_start,
  	if (gic_nr == 0)
  		gic_cpu_base_addr = cpu_base;
 
+	gic_chip.flags |= gic_arch_extn.flags;
  	gic_dist_init(gic, irq_start);
  	gic_cpu_init(gic);
  	gic_cpu_pm_init(gic);

Russell,
Any thoughts on this fix?

Regards
Santosh

#2 lore raw
Quoted 10 lines · Santosh Shilimkar
Quoted 5 lines · Colin Cross

Tegra can benefit from the IRQCHIP_MASK_ON_SUSPEND flag, allow it to be passed to the gic irq chip.

I missed this patch. Looks good to me and I think can be merged in rc as well.

There is no need for this in an rc unless another patch destined for rc needs to set the flags, which is unlikely at this point.

Quoted 24 lines
Quoted 16 lines

---
?arch/arm/common/gic.c | ? ?1 +
?1 files changed, 1 insertions(+), 0 deletions(-)

arch/arm/common/gic.c +1 -0
index 8d62e07..a6c28a0 100644
@@ -576,6 +576,7 @@ void __init gic_init(unsigned int gic_nr, unsigned int
 irq_start,
 ? ? ? ?if (gic_nr == 0)
 ? ? ? ? ? ? ? ?gic_cpu_base_addr = cpu_base;
 
+ ? ? ? gic_chip.flags |= gic_arch_extn.flags;
 ? ? ? ?gic_dist_init(gic, irq_start);
 ? ? ? ?gic_cpu_init(gic);
Quoted 1 line

? ? ? ?gic_cpu_pm_init(gic);

Russell,
Any thoughts on this fix?

Regards
Santosh