soc/tegra: pmc: Prevent racing with cpuilde driver
authorDmitry Osipenko <digetx@gmail.com>
Sun, 18 Jul 2021 21:27:05 +0000 (00:27 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 11 Aug 2021 09:51:39 +0000 (11:51 +0200)
commit9c93ccfc86f2cdeab8a34408759abad594e439b9
tree35ffbc7de3594e3b3548e0733ea13887e578c6bd
parent158a9b47a491dd73e73a306e962d4c9a01270132
soc/tegra: pmc: Prevent racing with cpuilde driver

Both PMC and cpuidle drivers are probed at the same init level and
cpuidle depends on the PMC suspend mode. Add new default suspend mode
that indicates whether PMC driver has been probed and reset the mode in
a case of deferred probe of the PMC driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/pm.c
arch/arm/mach-tegra/pm.h
arch/arm/mach-tegra/tegra.c
drivers/soc/tegra/pmc.c
include/soc/tegra/pm.h