Skip to content

PM /Domain/OPP: Add support to get performance state from DT

Viresh Kumar linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PM / OPP: Implement dev_pm_opp_of_add_table_indexed()drivers/opp/of.c include/linux/pm_opp.h+47 -91 reply
2/7PM / OPP: Implement of_dev_pm_opp_find_required_opp()drivers/opp/core.c drivers/opp/of.c drivers/opp/opp.h +1 more+61 -31 reply
3/7PM / Domain: Add struct device to genpddrivers/base/power/domain.c include/linux/pm_domain.h+38 -05 replies
4/7PM / Domain: Add support to parse domain's OPP tabledrivers/base/power/domain.c+62 -163 replies
5/7PM / Domain: Implement of_dev_pm_genpd_get_performance_state()drivers/base/power/domain.c include/linux/pm_domain.h+59 -01 reply
6/7PM / OPP: Get performance state using genpd helperdrivers/opp/core.c drivers/opp/of.c+19 -41 reply
7/7PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper()drivers/opp/core.c drivers/opp/opp.h include/linux/pm_opp.h+0 -871 reply

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchUlf Hansson
1/7R-b
2/7R-b
3/7
4/7A-b
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] PM /Domain/OPP: Add support to get performance state from DT

Hi,

Now that the DT bindings [1] are already Reviewed/Acked by respective maintainers, here is the code to start using them.

The first two patches provide helpers in the OPP core, [3-5]/7 update the PM domain core to start supporting domain OPP tables, etc, 6/7 updates the OPP core to use the new callback provided by the PM domains to get performance state and the last one removes the unused helpers now.

This is tested on Hikey620 and works just fine.

--
viresh

[1] https://lkml.kernel.org/r/[email protected]

Viresh Kumar (7):
PM / OPP: Implement dev_pm_opp_of_add_table_indexed() PM / OPP: Implement of_dev_pm_opp_find_required_opp() PM / Domain: Add struct device to genpd
PM / Domain: Add support to parse domain's OPP table PM / Domain: Implement of_dev_pm_genpd_get_performance_state() PM / OPP: Get performance state using genpd helper PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper()

 drivers/base/power/domain.c | 159 ++++++++++++++++++++++++++++++++++++++++----
 drivers/opp/core.c          |  82 +----------------------
 drivers/opp/of.c            | 123 +++++++++++++++++++++++++++++++---
 drivers/opp/opp.h           |   3 +-
 include/linux/pm_domain.h   |  12 ++++
 include/linux/pm_opp.h      |  22 +++---
 6 files changed, 284 insertions(+), 117 deletions(-)
Signature · 1 line
2.15.0.194.g9af6a3dea062