From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: [PATCH 00/17] PM / OPP: Introduce APIs to transition OPPs Date: Tue, 22 Dec 2015 15:46:01 +0530 Message-ID: Return-path: Received: from mail-pf0-f176.google.com ([209.85.192.176]:34410 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbbLVKQZ (ORCPT ); Tue, 22 Dec 2015 05:16:25 -0500 Received: by mail-pf0-f176.google.com with SMTP id u7so57919711pfb.1 for ; Tue, 22 Dec 2015 02:16:25 -0800 (PST) Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Viresh Kumar 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 Eight patches update the OPP core to introduce the new APIs and the next Nine patches update cpufreq-dt for the same. 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 Viresh Kumar (17): PM / OPP: get/put regulators from OPP core PM / OPP: Add APIs to set regulator-name 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_XXX() calls to dev_XXX() 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 for V1 bindings 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: drop references to DT node cpufreq: dt: No need to allocate resources anymore drivers/base/power/opp/core.c | 428 ++++++++++++++++++++++++++++++++++++++++-- drivers/base/power/opp/opp.h | 15 ++ drivers/cpufreq/cpufreq-dt.c | 254 ++++++++----------------- include/linux/pm_opp.h | 27 +++ 4 files changed, 530 insertions(+), 194 deletions(-) -- 2.7.0.rc1.186.g94414c4