soc: imx: gpcv2: support system suspend/resume
authorLucas Stach <l.stach@pengutronix.de>
Sat, 2 Oct 2021 00:59:43 +0000 (02:59 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Oct 2021 12:13:45 +0000 (20:13 +0800)
commitda4112230f86558f7d3b2cb261e71160e4f88849
tree27e1ef32d3a3d7186b6d918636cd3fb3d6b702da
parent656ade7aa42a2c6d08b3c5ddff074b54d025ccc2
soc: imx: gpcv2: support system suspend/resume

Our usage of runtime PM to control the hierarchy of power domains is
slightly unusual and means that powering up a domain may fail in early
system resume, as runtime PM is still disallowed at this stage.

However the system suspend/resume path takes care of powering down/up
the power domains in the order defined by the device parent/child and
power-domain provider/consumer hierarachy. So we can just runtime
resume all our power-domain devices to allow the power-up to work
properly in the resume path. System suspend will still disable all
domains as intended.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c