Re: [PATCH] clk: at91: Fix the declaration of the clocks

From
Stephen Boyd <sboyd@kernel.org>
Date
2021-02-10 02:13:31
Also in
linux-arm-kernel, lkml
Reply to
Tudor Ambarus, 2021-02-03
Quoting Tudor Ambarus (2021-02-03 07:43:32)
These are all "early clocks" that require initialization just at
of_clk_init() time. Use CLK_OF_DECLARE() to declare them.

This also fixes a problem that was spotted when fw_devlink was
set to 'on' by default: the boards failed to boot. The reason is
that CLK_OF_DECLARE_DRIVER() clears the OF_POPULATED and causes
the consumers of the clock to be postponed by fw_devlink until
the second initialization routine of the clock has been completed.
One of the consumers of the clock is the timer, which is used as a
clocksource, and needs the clock initialized early. Postponing the
timers caused the fail at boot.

Signed-off-by: Tudor Ambarus <redacted>
---
Applied to clk-next
Thread (13 messages) 13 messages, 8 authors, last reply 2021-02-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help