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

Commit 9f33a8a9 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Simon Horman
Browse files

arm64: dts: r8a7795: 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 devices' clocks properties.

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

Reported-by: default avatarJürg Billeter <j@bitron.ch>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent de5a79f1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -394,6 +394,7 @@
};

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

+1 −4
Original line number Diff line number Diff line
@@ -120,7 +120,6 @@
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <0>;
		status = "disabled";
	};

	/* External SCIF clock - to be overridden by boards that provide it */
@@ -128,15 +127,13 @@
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <0>;
		status = "disabled";
	};

	/* External PCIe clock - can be overridden by the board */
	pcie_bus_clk: pcie_bus {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <100000000>;
		status = "disabled";
		clock-frequency = <0>;
	};

	soc {