]> git.baikalelectronics.ru Git - kernel.git/commit
opp: Return genpd virtual devices from dev_pm_opp_attach_genpd()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Jul 2019 05:54:56 +0000 (11:24 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 26 Jul 2019 07:53:31 +0000 (13:23 +0530)
commitc0619e8610a8471d5a3008beb43fdf60147360ef
tree366428704840f67d53e5109a755c05fe628f5baa
parent552edb2046be50161bbc0a4591a899e2ea8605ca
opp: Return genpd virtual devices from dev_pm_opp_attach_genpd()

The cpufreq drivers don't need to do runtime PM operations on the
virtual devices returned by dev_pm_domain_attach_by_name() and so the
virtual devices weren't shared with the callers of
dev_pm_opp_attach_genpd() earlier.

But the IO device drivers would want to do that. This patch updates the
prototype of dev_pm_opp_attach_genpd() to accept another argument to
return the pointer to the array of genpd virtual devices.

Reported-by: Rajendra Nayak <rnayak@codeaurora.org>
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h