Commit 9db27e4f authored by Ulf Hansson's avatar Ulf Hansson Committed by Anant Goel
Browse files

BACKPORT: OPP: Extend support for the opp-level beyond required-opps



At this point the level (performance state) for an OPP is currently limited
to be requested for a device that is attached to a PM domain.  Moreover,
the device needs to have the so called required-opps assigned to it, which
are based upon OPP tables being described in DT.

To extend the support beyond required-opps and DT, let's enable the level
to be set for all OPPs. More precisely, if the requested OPP has a valid
level let's try to request it through the device's optional PM domain, via
calling dev_pm_domain_set_performance_state().

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
[ Viresh: Handle NULL opp in _set_opp_level() ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>

Bug: 365888817
Change-Id: I6176127586d50324fbb96f099ddad60bb3c910e5
(cherry picked from commit 0025ff64)
[nikunj: Resolved minor conflict in drivers/opp/core.c ]
[anantg: Use dev_pm_genpd_set_performance_state in drivers/opp/core.c ]
Signed-off-by: default avatarNikunj Kela <quic_nkela@quicinc.com>
Signed-off-by: default avatarAnant Goel <quic_anantg@quicinc.com>
parent ec707510
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment