mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] clk: fix of clk set defaults when dev is a clk provider
@ 2021-06-17 14:17 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2021-06-17 14:17 UTC (permalink / raw)
  To: Barebox List

When a newly registered device is a clk provider itself we must call
of_clk_set_defaults() explicitly when the clk provider is registered.
With this we can also honour the assigned-clock-* properties for the
clocks just registered.

Signed-off-by: Sascha Hauer <>
 drivers/clk/clk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index ba726c342c..6e27cc0c8f 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -593,6 +593,8 @@ int of_clk_add_provider(struct device_node *np,
 	list_add(&cp->link, &of_clk_providers);
 	pr_debug("Added clock from %s\n", np ? np->full_name : "<none>");
+	of_clk_set_defaults(np, true);
 	return 0;

barebox mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-17 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 14:17 [PATCH] clk: fix of clk set defaults when dev is a clk provider Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox