]> asedeno.scripts.mit.edu Git - linux.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)
commit829a4e8c0e9aab17bcfe2ddb070388b8ada26292
treed81f8ee5aee499c3dac6115557bc740f9f98ec66
parentb21569cf1de925e0a42c9964bd7f520cb4a4d875
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