Skip to contentSkip to conversation

ARM: dts: vf610: fix IRQ flag of global timer

PATCH Applied Stefan Agner 2 participants 2 messages Oct 18, 2016 – Oct 24, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: vf610: fix IRQ flag of global timer

The global timer IRQ (PPI[0], PPI 11 in device tree terms) is a rising edge interrupt. The ARM Cortex-A5 MPCore TRM in Chapter 10.1.2. Interrupt types and sources says:
"Interrupt is rising-edge sensitive."

The bits seem to be read-only, hence this missconfiguration had no negative effect. However, with commit 992345a58e0c ("irqchip/gic: WARN if setting the interrupt type for a PPI fails") warnings such as this get printed:
GIC: PPI11 is secure or misconfigured

With this change the new configuration matches the default configuration and no warning is printed anymore.

---
 arch/arm/boot/dts/vf500.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/vf500.dtsi +1 -1
index a3824e6..d7fdb2a 100644
@@ -70,7 +70,7 @@
 			global_timer: timer at 40002200 {
 				compatible = "arm,cortex-a9-global-timer";
 				reg = <0x40002200 0x20>;
-				interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
 				interrupt-parent = <&intc>;
 				clocks = <&clks VF610_CLK_PLATFORM_BUS>;
 			};
Signature · 1 line
2.10.0
Applied
#1 lore raw
Quoted 11 lines · Stefan Agner

The global timer IRQ (PPI[0], PPI 11 in device tree terms) is a rising edge interrupt. The ARM Cortex-A5 MPCore TRM in Chapter 10.1.2. Interrupt types and sources says:
"Interrupt is rising-edge sensitive."

The bits seem to be read-only, hence this missconfiguration had no negative effect. However, with commit 992345a58e0c ("irqchip/gic: WARN if setting the interrupt type for a PPI fails") warnings such as this get printed:
GIC: PPI11 is secure or misconfigured

Quoted 4 lines

With this change the new configuration matches the default configuration and no warning is printed anymore.

Applied, thanks.