opp: core: add regulators enable and disable
authorKamil Konieczny <k.konieczny@samsung.com>
Fri, 19 Jul 2019 15:05:32 +0000 (17:05 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 May 2020 04:45:12 +0000 (10:15 +0530)
commit8d45719caaf56c859be0172447f8559c0df40f93
tree6da388dcfeaf0feba91978efddd0d4027ea1e11e
parentb23dfa3543f31fbb8c0098925bf90fc23193d17a
opp: core: add regulators enable and disable

Add enable regulators to dev_pm_opp_set_regulators() and disable
regulators to dev_pm_opp_put_regulators(). Even if bootloader
leaves regulators enabled, they should be enabled in kernel in
order to increase the reference count.

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Clément Péron <peron.clem@gmail.com>
Tested-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com>
[ Viresh: Enable the regulator only after it is programmed and add a
  flag to track its status. ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/opp.h