cpuidle: tegra: Check whether PMC is ready
authorDmitry Osipenko <digetx@gmail.com>
Sun, 12 Sep 2021 20:29:07 +0000 (23:29 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 5 Oct 2021 17:11:40 +0000 (19:11 +0200)
commitbdb1ffdad3b73e4d0538098fc02e2ea87a6b27cd
tree72c1d3982bd3848dc7221844643b223e5f5212d9
parentfaae6c9f2e68e62687636a7d6e0517b3bf594add
cpuidle: tegra: Check whether PMC is ready

Check whether PMC is ready before proceeding with the cpuidle registration.
This fixes racing with the PMC driver probe order, which results in a
disabled deepest CC6 idling state if cpuidle driver is probed before the
PMC.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/cpuidle/cpuidle-tegra.c