Re: [4.4.y-cip 01/15] PM / OPP: Add debugfs support


Viresh Kumar <viresh.kumar@...>
 

On 04-06-20, 11:18, Chen-Yu Tsai (Moxa) wrote:
From: Viresh Kumar <viresh.kumar@linaro.org>

commit deaa51465105a7eda19a627b10372f4f7c51a4df upstream.

This patch adds debugfs support to OPP layer to export OPPs and their
properties for all the devices.

This creates a top level directory: /sys/kernel/debug/opp and then
device specific directories (based on device names) inside it. For
example: 'cpu0', 'cpu1', etc..

If multiple devices share the OPP table, then the real directory is
created only for the first device. For all others, links are created to
the real directory.

Inside the device specific directory, a separate directory is created
for each OPP. And within that files per opp property.

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>
Signed-off-by: Chen-Yu Tsai (Moxa) <wens@csie.org>
Please use --suppress-cc=all while sending patches internally.

--
viresh

Join cip-dev@lists.cip-project.org to automatically receive all group messages.