MLK-17074-8 soc: imx8: pm-domains: fix the wrong use of runtime_idle_active for pd...
authorDong Aisheng <aisheng.dong@nxp.com>
Thu, 30 Nov 2017 06:09:57 +0000 (14:09 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:58 +0000 (14:49 -0500)
commit44a853618f19dc7af6b5fe217f4750fbb177f14b
treeec1dfde89b64dc48febf661b65781be6f3e73305
parent254b9f08c1c325eb0c77f8ee0e3fcd5ba214e1f8
MLK-17074-8 soc: imx8: pm-domains: fix the wrong use of runtime_idle_active for pd mode selection

There're fundanmental difference between the using of start/stop and pd
mode selection. Start/stop actually can only reflect device state, not
power domain state. So actually we're abusing it here.
e.g. take a consider of two devices on the same domain.

PD mode should be selected by power domain gorvernor or power domain core.
This patch totally remove the wrong use of start/stop and runtime_idle_active
to indicate which PD mode to enter.

By apply this patch, the power domain lower power mode selection will have
no dependency on the per device runtime status anymore.

Reviewed-by: Frank Li <frank.li@nxp.com>
Reviewed-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/soc/imx/pm-domains.c