]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pmdomain: imx8m-blk-ctrl: Remove separate rst and clk mask for 8mq vpu
authorMing Qian <ming.qian@oss.nxp.com>
Wed, 28 Jan 2026 22:20:33 +0000 (17:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:44:19 +0000 (16:44 +0100)
[ Upstream commit 3de49966499634454fd59e0e6fecd50baab7febd ]

For i.MX8MQ platform, the ADB in the VPUMIX domain has no separate reset
and clock enable bits, but is ungated and reset together with the VPUs.
So we can't reset G1 or G2 separately, it may led to the system hang.
Remove rst_mask and clk_mask of imx8mq_vpu_blk_ctl_domain_data.
Let imx8mq_vpu_power_notifier() do really vpu reset.

Fixes: 608d7c325e85 ("soc: imx: imx8m-blk-ctrl: add i.MX8MQ VPU blk-ctrl")
Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/imx/imx8m-blk-ctrl.c

index 00879615a701588f3c52ef025958ba3dd3b3a4fc..a430c14ce16d3cf91520a3992e20cad4ca54c74c 100644 (file)
@@ -810,22 +810,25 @@ static int imx8mq_vpu_power_notifier(struct notifier_block *nb,
        return NOTIFY_OK;
 }
 
+/*
+ * For i.MX8MQ, the ADB in the VPUMIX domain has no separate reset and clock
+ * enable bits, but is ungated and reset together with the VPUs.
+ * Resetting G1 or G2 separately may led to system hang.
+ * Remove the rst_mask and clk_mask from the domain data of G1 and G2,
+ * Let imx8mq_vpu_power_notifier() do really vpu reset.
+ */
 static const struct imx8m_blk_ctrl_domain_data imx8mq_vpu_blk_ctl_domain_data[] = {
        [IMX8MQ_VPUBLK_PD_G1] = {
                .name = "vpublk-g1",
                .clk_names = (const char *[]){ "g1", },
                .num_clks = 1,
                .gpc_name = "g1",
-               .rst_mask = BIT(1),
-               .clk_mask = BIT(1),
        },
        [IMX8MQ_VPUBLK_PD_G2] = {
                .name = "vpublk-g2",
                .clk_names = (const char *[]){ "g2", },
                .num_clks = 1,
                .gpc_name = "g2",
-               .rst_mask = BIT(0),
-               .clk_mask = BIT(0),
        },
 };