]> git.baikalelectronics.ru Git - kernel.git/commit
OPP: Fix handling of multiple power domains
authorRajendra Nayak <rnayak@codeaurora.org>
Wed, 6 Mar 2019 04:07:26 +0000 (09:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Mar 2019 10:17:26 +0000 (11:17 +0100)
commit67014a8c7a9275491ebf2729debbe5081013a6c9
treedc66bd65d0cdd9f3dc2af9a20e92b41ed5288367
parent32fc796bebba4f99c161523dd5a68c1cce02e6cb
OPP: Fix handling of multiple power domains

We seem to rely on the number of phandles specified in the
'required-opps' property to identify cases where a device is
associated with multiple power domains and hence would have
multiple virtual devices that have to be dealt with.

In cases where we do have devices with multiple power domains
but with only one of them being scalable, this logic seems to
fail.

Instead read the number of power domains from DT to identify
such cases.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/opp/of.c