summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>2023-08-30 10:31:42 +0200
committerMichal Simek <michal.simek@amd.com>2023-09-21 13:20:11 +0200
commit99b46477e3495f819f6826d11470d46f12a4f9f7 (patch)
treea9d851b4d23a6eae63d760fd4b95bdedcdf708f9 /arch
parente5e6b1ed6c11842fe51b59e9bd9f1cf55401ae4b (diff)
downloadu-boot-99b46477e3495f819f6826d11470d46f12a4f9f7.tar.gz
u-boot-99b46477e3495f819f6826d11470d46f12a4f9f7.tar.bz2
u-boot-99b46477e3495f819f6826d11470d46f12a4f9f7.zip
clk: Dont return error when assigned-clocks is empty or missing
There is a chance that assigned-clock-rates is given and assigned-clocks could be empty. Dont return error in that case, because the probe of the corresponding driver will not be called at all if this fails. Better to continue to look for it and return 0. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/a9a9d853e0ac396cd9b3577cce26279a75765711.1693384296.git.michal.simek@amd.com
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index d4693e3c7a..e6a471e40d 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -614,6 +614,22 @@
clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
};
+ clk-test2 {
+ compatible = "sandbox,clk-test";
+ assigned-clock-rates = <321>;
+ };
+
+ clk-test3 {
+ compatible = "sandbox,clk-test";
+ assigned-clocks = <&clk_sandbox 1>;
+ };
+
+ clk-test4 {
+ compatible = "sandbox,clk-test";
+ assigned-clock-rates = <654>, <321>;
+ assigned-clocks = <&clk_sandbox 1>;
+ };
+
ccf: clk-ccf {
compatible = "sandbox,clk-ccf";
};