]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pmdomain: core: Set the required dev for a required OPP during genpd attach
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Oct 2024 12:22:27 +0000 (14:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2024 12:15:10 +0000 (14:15 +0200)
commite130ca9d4873f8d01e3e7b8137e0c14196a3cfb4
treed48152ec2839bb992b27f42a6cea8630c39b4ea4
parentcf06fb6f0b07012cd6cf863ecb93a57773e4e16e
pmdomain: core: Set the required dev for a required OPP during genpd attach

In the single PM domain case there is no need for platform code to specify
the index of the corresponding required OPP in DT, as the index must be
zero. This allows us to assign a required dev for the required OPP from
genpd, while attaching a device to its PM domain.

In this way, we can remove some of the genpd specific code in the OPP core
for the single PM domain case. Although, this cleanup is made from a
subsequent change.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20241002122232.194245-7-ulf.hansson@linaro.org
drivers/pmdomain/core.c
include/linux/pm_domain.h