soc/tegra: Enable runtime PM during OPP state-syncing
authorDmitry Osipenko <digetx@gmail.com>
Tue, 30 Nov 2021 23:23:08 +0000 (02:23 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:03:38 +0000 (14:03 +0100)
commit006da96c840ff60a1764fc38ee7adc3dc4191d79
tree19db2678f3584e2d4fac5213f8c276f7529d11e6
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
soc/tegra: Enable runtime PM during OPP state-syncing

GENPD core now can set up domain's performance state properly while device
is RPM-suspended. Runtime PM of a device must be enabled during setup
because GENPD checks whether device is suspended and check doesn't work
while RPM is disabled. Instead of replicating the boilerplate RPM-enable
code around OPP helper for each driver, let's make OPP helper to take care
of enabling it.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/common.c