]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM: domains: Support required OPPs in dev_pm_domain_attach_list()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Oct 2024 12:22:25 +0000 (14:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2024 12:13:49 +0000 (14:13 +0200)
commit98d277a79126a2df8a2617215846d01f823cfffa
tree859ad995197612bb024959e4689c22fdc38748b7
parent0e8158b4a82eb5bfb69df17510d210b073896f00
PM: domains: Support required OPPs in dev_pm_domain_attach_list()

In the multiple PM domain case we need platform code to specify the index
of the corresponding required OPP in DT for a device, which is what
*_opp_attach_genpd() is there to help us with.

However, attaching a device to its PM domains is in general better done
with dev_pm_domain_attach_list(). To avoid having two different ways to
manage this and to prepare for the removal of *_opp_attach_genpd(), let's
extend dev_pm_domain_attach|detach_list() to manage the required OPPs too.

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-5-ulf.hansson@linaro.org
drivers/base/power/common.c
include/linux/pm_domain.h