• Lucas Stach's avatar
    soc: imx: gpcv2: support system suspend/resume · da411223
    Lucas Stach authored
    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: default avatarLucas Stach <l.stach@pengutronix.de>
    Acked-by: default avatarPeng Fan <peng.fan@nxp.com>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    da411223
gpcv2.c 28.2 KB