Re: [PATCH v2 2/2] pmdomain: imx8mp-blk-ctrl: fix suspend/resume order

From: Peng Fan (OSS)

Date: Mon Nov 30 2026 - 01:07:49 EST


On Thu, 26 Nov 2026 16:40:59 +0000 Vitor Soares <ivitro@xxxxxxxxx> wrote:

> From: Vitor Soares <vitor.soares@xxxxxxxxxxx>
>
> As in imx8m-blk-ctrl, the GPC domains behind the HSIO and HDMI blk-ctrl
> are driven through the virtual devices from
> dev_pm_domain_attach_by_name(), which have no parent and no device link
> to the blk-ctrl or its consumers, so nothing orders them in dpm_list.
>
> On Verdin iMX8MP, with the phy-fsl-imx8m-pcie module loaded after the
> HSIO blk-ctrl has probed, the virtual devices are suspended before the
> PCIe PHY, and the CPU hangs in genpd_suspend_noirq() of
> 32f00000.pcie-phy with the HSIO bus domain already off. The system
> never completes suspend to mem.
>
> Add a stateless device link from the blk-ctrl to each virtual device,
> bus domain included, so they are suspended after and resumed before the
> blk-ctrl and its consumers.
>
> Fixes: 556f5cf9568a ("soc: imx: add i.MX8MP HSIO blk-ctrl")
> Cc: stable@xxxxxxxxxxxxxxx
> Co-developed-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
> Signed-off-by: Vitor Soares <vitor.soares@xxxxxxxxxxx>

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>