]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: renesas: rcar-sysc: Add genpd OF provider at postcore_initcall
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 1 Jul 2025 11:47:03 +0000 (13:47 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2025 11:28:29 +0000 (13:28 +0200)
commitc5ae5a0c61120d0c917f4c8ae1af3e35326f29e8
tree13a252ea12a401b7e3f541d56ff49fb1e24447ab
parent9f2cbfcda595b6d741adf71058c60476b8d21028
pmdomain: renesas: rcar-sysc: Add genpd OF provider at postcore_initcall

Subsequent changes to genpd adds a limitation that registering a genpd OF
providers must be done after its bus registration, which is at
core_initcall.

To adopt to this, let's split the initialization into two steps. The first
part keep registering the PM domains with genpd at early_initcall, as this
is needed to bringup the CPUs for R-Car H1, by calling
rcar_sysc_power_up_cpu(). The second and new part, moves the registration
of the genpd OF provider to a postcore_initcall().

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250701114733.636510-2-ulf.hansson@linaro.org
drivers/pmdomain/renesas/rcar-sysc.c