]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pmdomain: core: Move the unused cleanup to a _sync initcall
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 27 Dec 2023 15:21:24 +0000 (16:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:17 +0000 (09:25 +0100)
commit63e2bd10a89a7dff92f8938b7def0685e638db20
tree5ae7c7e106b0c87c30102cea95683c7f58a22e6a
parentf84e7534457dcd7835be743517c35378bb4e7c50
pmdomain: core: Move the unused cleanup to a _sync initcall

commit 741ba0134fa7822fcf4e4a0a537a5c4cfd706b20 upstream.

The unused clock cleanup uses the _sync initcall to give all users at
earlier initcalls time to probe. Do the same to avoid leaving some PDs
dangling at "on" (which actually happened on qcom!).

Fixes: 2fe71dcdfd10 ("PM / domains: Add late_initcall to disable unused PM domains")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231227-topic-pmdomain_sync_cleanup-v1-1-5f36769d538b@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/domain.c