Skip to contentSkip to conversation

ARM: dts: imx6qdl: disable spdif "rxtx5" clock option

PATCH New Shawn Guo 2 participants 3 messages Nov 16, 2013

Subsystems (2)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 ARM: dts: imx6qdl: disable spdif "rxtx5" clock option

The spdif "rxtx5" clock option is being set to ipg clk (62) by mistake. This causes an incorrect time keeping when spdif driver is running, because ipg is ancestor clock for clocksource while spdif driver will change the rate of this clock in certain circumstance. Before the correct clock for "rxtx5" option can be supplied, let's disable this option for now by filling a dummy clock for it.

---
 arch/arm/boot/dts/imx6qdl.dtsi |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl.dtsi +1 -1
index dcab03b..056b46b 100644
@@ -161,7 +161,7 @@
 					clocks = <&clks 197>, <&clks 3>,
 						 <&clks 197>, <&clks 107>,
 						 <&clks 0>,   <&clks 118>,
-						 <&clks 62>,  <&clks 139>,
+						 <&clks 0>,  <&clks 139>,
 						 <&clks 0>;
 					clock-names = "core",  "rxtx0",
 						      "rxtx1", "rxtx2",
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 ARM: dts: imx6qdl: disable spdif "rxtx5" clock option

Quoted 6 lines · Shawn Guo

The spdif "rxtx5" clock option is being set to ipg clk (62) by mistake. This causes an incorrect time keeping when spdif driver is running, because ipg is ancestor clock for clocksource while spdif driver will change the rate of this clock in certain circumstance. Before the correct clock for "rxtx5" option can be supplied, let's disable this option for now by filling a dummy clock for it.

Strangely, this looks exactly like the change I made here :)

Thanks Shawn.

author
#2 lore raw

PATCH 1/1 ARM: dts: imx6qdl: disable spdif "rxtx5" clock option

Quoted 9 lines · Russell King - ARM Linux
Quoted 6 lines · Shawn Guo

The spdif "rxtx5" clock option is being set to ipg clk (62) by mistake. This causes an incorrect time keeping when spdif driver is running, because ipg is ancestor clock for clocksource while spdif driver will change the rate of this clock in certain circumstance. Before the correct clock for "rxtx5" option can be supplied, let's disable this option for now by filling a dummy clock for it.

Strangely, this looks exactly like the change I made here :)

Yeah, I tried very hard to find a different quick fix from the one in your bug report, but failed :) I should mention it's your change.

Shawn