]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Add dev_pm_opp_{set|put}_clkname()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 Jun 2017 04:59:13 +0000 (10:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jun 2017 23:41:55 +0000 (01:41 +0200)
commit84f2ecf5d347a79aabd3894f98cc534ecfd7101f
treed81f8ee5aee499c3dac6115557bc740f9f98ec66
parent844e5ffcea9b399a9593fba2e4b4f5aac7da84f6
PM / OPP: Add dev_pm_opp_{set|put}_clkname()

In order to support OPP switching, OPP layer needs to get pointer to the
clock for the device. Simple cases work fine without using the routines
added by this patch (i.e.  by passing connection-id as NULL), but for a
device with multiple clocks available, the OPP core needs to know the
exact name of the clk to use.

Add a new set of APIs to get that done.

Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c
include/linux/pm_opp.h