PM / OPP: Introduce APIs to transition OPPs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest16 patches 10 repliesIn review
- v216 patches 21 repliesSuperseded
- v117 patches 50 repliesSuperseded
Changes in v3 from the cover letter
- Very minor updates.
- find_supply_name() doesn't return an error value now, and so its callers don't check for it.
- And so we don't need to initialize name to NULL
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | PM / OPP: get/put regulators from OPP coredrivers/ drivers/ include/ | +124 | 1 reply | |
| 2/16 | PM / OPP: Disable OPPs that aren't supported by the regulatordrivers/ | +22 | 0 replies | |
| 3/16 | PM / OPP: Introduce dev_pm_opp_get_max_volt_latency()drivers/ include/ | +65 | 1 reply | |
| 4/16 | PM / OPP: Introduce dev_pm_opp_get_max_transition_latency()drivers/ include/ | +23 | 0 replies | |
| 5/16 | PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindingsdrivers/ drivers/ | +26 | 0 replies | |
| 6/16 | PM / OPP: Manage device clkdrivers/ drivers/ | +18 | 0 replies | |
| 7/16 | PM / OPP: Add dev_pm_opp_set_rate()drivers/ include/ | +182 | 1 reply | |
| 8/16 | cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err()drivers/ | +2 | 0 replies | |
| 9/16 | cpufreq: dt: Rename 'need_update' to 'opp_v1'drivers/ | +3 | 0 replies | |
| 10/16 | cpufreq: dt: OPP layers handles clock-latency for V1 bindings as welldrivers/ | +1 | 0 replies | |
| 11/16 | cpufreq: dt: Pass regulator name to the OPP coredrivers/ | +46 | 5 replies | |
| 12/16 | cpufreq: dt: Unsupported OPPs are already disableddrivers/ | +0 | 0 replies | |
| 13/16 | cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency()drivers/ | +4 | 0 replies | |
| 14/16 | cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequencydrivers/ | +2 | 0 replies | |
| 15/16 | cpufreq: dt: No need to fetch voltage-tolerancedrivers/ | +23 | 0 replies | |
| 16/16 | cpufreq: dt: No need to allocate resources anymoredrivers/ | +45 | 1 reply |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
| Patch | Stephen Boyd |
|---|---|
| 1/16 | R-b |
| 2/16 | R-b |
| 3/16 | R-b |
| 4/16 | R-b |
| 5/16 | R-b |
| 6/16 | R-b |
| 7/16 | R-b |
| 8/16 | R-b |
| 9/16 | R-b |
| 10/16 | R-b |
| 11/16 | R-b |
| 12/16 | R-b |
| 13/16 | R-b |
| 14/16 | R-b |
| 15/16 | R-b |
| 16/16 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 00/16] PM / OPP: Introduce APIs to transition OPPs
Hi Guys,
This patchset add APIs in OPP layer to allow OPPs transitioning from within OPP layer. Currently all OPP users need to replicate the same code to switch between OPPs. While the same can be handled easily by OPP-core.
The first 7 patches update the OPP core to introduce the new APIs and the next Nine patches update cpufreq-dt for the same.
11 out of 17 are already Reviewed by Stephen, only few are left :)
I hope this is the last version of the series :)
Testing:
- Tested on exynos 5250-arndale (dual-cortex-A15)
- Tested for both Old-V1 bindings and New V2 bindings
- Tested with regulator names as: 'cpu-supply' and 'cpu0-supply'
- Tested with Unsupported supply ranges as well, to check the opp-disable logic
V2->V3:
- Very minor updates.
- find_supply_name() doesn't return an error value now, and so its callers don't check for it.
- And so we don't need to initialize name to NULL
Viresh Kumar (16):
PM / OPP: get/put regulators from OPP core
PM / OPP: Disable OPPs that aren't supported by the regulator PM / OPP: Introduce dev_pm_opp_get_max_volt_latency()
PM / OPP: Introduce dev_pm_opp_get_max_transition_latency() PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings PM / OPP: Manage device clk
PM / OPP: Add dev_pm_opp_set_rate()
cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err()
cpufreq: dt: Rename 'need_update' to 'opp_v1'
cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well
cpufreq: dt: Pass regulator name to the OPP core
cpufreq: dt: Unsupported OPPs are already disabled
cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency()
cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequency
cpufreq: dt: No need to fetch voltage-tolerance
cpufreq: dt: No need to allocate resources anymore
drivers/base/power/opp/core.c | 420 ++++++++++++++++++++++++++++++++++++++++++ drivers/base/power/opp/opp.h | 13 ++ drivers/cpufreq/cpufreq-dt.c | 300 +++++++++++------------------- include/linux/pm_opp.h | 27 +++ 4 files changed, 565 insertions(+), 195 deletions(-)
Signature · 1 line
2.7.1.370.gb2aa7f8