Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac6908b3 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Simon Horman
Browse files

ARM: dts: r8a7791: Don't disable referenced optional clocks



clk_get on a disabled clock node will return EPROBE_DEFER, which can
cause drivers to be deferred forever if such clocks are referenced in
their clocks property.

Update the various disabled external clock nodes to default to a
frequency of 0, but don't disable them to prevent this.

Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent f55532a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -661,6 +661,7 @@
};

&pcie_bus_clk {
	clock-frequency = <100000000>;
	status = "okay";
};

+1 −0
Original line number Diff line number Diff line
@@ -414,6 +414,7 @@
};

&pcie_bus_clk {
	clock-frequency = <100000000>;
	status = "okay";
};

+1 −4
Original line number Diff line number Diff line
@@ -1083,9 +1083,8 @@
		pcie_bus_clk: pcie_bus_clk {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <100000000>;
			clock-frequency = <0>;
			clock-output-names = "pcie_bus";
			status = "disabled";
		};

		/* External SCIF clock */
@@ -1094,7 +1093,6 @@
			#clock-cells = <0>;
			/* This value must be overridden by the board. */
			clock-frequency = <0>;
			status = "disabled";
		};

		/* External USB clock - can be overridden by the board */
@@ -1112,7 +1110,6 @@
			/* This value must be overridden by the board. */
			clock-frequency = <0>;
			clock-output-names = "can_clk";
			status = "disabled";
		};

		/* Special CPG clocks */