]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / OPP: "opp-hz" is optional for power domains
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 6 Apr 2018 09:05:45 +0000 (14:35 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 May 2018 04:45:18 +0000 (10:15 +0530)
commita1e8c13600bfd96c51580732ccf31f69bc6de4d1
tree42bf4de0062d62d7468d8a620d669721cc33108e
parentb89469bdf0c2025a1c1f6ce2b841cb8abe589688
PM / OPP: "opp-hz" is optional for power domains

"opp-hz" property is optional for power domains now and we shouldn't
error out if it is missing for power domains.

This patch creates two new routines, _get_opp_count() and
_opp_is_duplicate(), by separating existing code from their parent
functions. Also skip duplicate OPP check for power domain OPPs as they
may not have any the "opp-hz" field, but a platform specific performance
state binding to uniquely identify OPP nodes.

By default the debugfs OPP nodes are named using the "rate" value, but
that isn't possible for the power domain OPP nodes and hence they use
the index of the OPP node in the OPP node list instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/opp/core.c
drivers/opp/debugfs.c
drivers/opp/of.c
drivers/opp/opp.h