]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: rockchip: support clocks registered late
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 16:58:50 +0000 (17:58 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 9 Jan 2025 15:19:21 +0000 (16:19 +0100)
commit9e89f02da718bc912f7f253b58804d4a52efed30
tree4f2a7765a979e4699c266c1ae2da390372ecd502
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
clk: rockchip: support clocks registered late

When some clocks are registered late and some clocks are registered
early we need to make sure the late registered clocks report probe defer
until the final registration has happened.

But we do not want to keep reporting probe defer after the late
registration has happened. Also not all Rockchip SoCs have late
registered clocks and may not need to report probe defer at all.

This restructures code a bit, so that there is a new function
rockchip_clk_init_early(), which should be used for initializing the CRU
structure on SoCs making use of late initialization in addition to the
early init. These platforms should call rockchip_clk_finalize()
once all clocks have been registered.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
[added EXPORT_SYMBOL_GPL(rockchip_clk_finalize) to match the early function]
Link: https://lore.kernel.org/r/20241211165957.94922-2-sebastian.reichel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk.c
drivers/clk/rockchip/clk.h