]> asedeno.scripts.mit.edu Git - linux.git/commit
OPP: Parse OPP table's DT properties from _of_init_opp_table()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 14 Jun 2018 06:34:43 +0000 (12:04 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Sep 2018 21:56:42 +0000 (14:56 -0700)
commitf06ed90e7051a3a50c2172001c86ff9645e5c2ba
treead370ce515f71f92b395d2a321b45906162472a4
parenteb7c8743d6cf489e30091e6656fd4d3306621e9a
OPP: Parse OPP table's DT properties from _of_init_opp_table()

Parse the DT properties present in the OPP table from
_of_init_opp_table(), which is a dedicated routine for DT parsing.

Minor relocation of helpers is required for this.

It is possible now for _managed_opp() to return a partially initialized
OPP table if the OPP table is created via the helpers like
dev_pm_opp_set_supported_hw() and we need another flag to indicate if
the static OPP are already parsed or not to make sure we don't
incorrectly skip initializing the static OPPs.

Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c
drivers/opp/opp.h