Some drivers use runtime PM callbacks during suspend/resume also and this
in turn results in SCFW calls requesting the resource to enter
low power idle instead OFF state.
This patch fixes this issue by ensuring that low power IDLE request is only
valid when runtime PM is enabled. Runtime PM is disabled when the system is
entering suspend state.
BuildInfo: SCFW
7a725203, IMX-MKIMAGE
ee6adff0, ATF 0
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
struct imx8_pm_domain *pd;
pd = container_of(genpd, struct imx8_pm_domain, pd);
- pd->runtime_idle_active = true;
+ if (pm_runtime_enabled(dev))
+ pd->runtime_idle_active = true;
return 0;
}
struct imx8_pm_domain *pd;
pd = container_of(genpd, struct imx8_pm_domain, pd);
- pd->runtime_idle_active = true;
+ if (pm_runtime_enabled(dev))
+ pd->runtime_idle_active = true;
return pm_runtime_autosuspend(dev);
}