clk: imx: scu: bypass pi_pll enable status restore
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 4 Jun 2021 09:09:38 +0000 (17:09 +0800)
committerAbel Vesa <abel.vesa@nxp.com>
Mon, 14 Jun 2021 09:34:30 +0000 (12:34 +0300)
PI PLL does not support enable/disable. So bypass it's
enable status restore.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/clk-scu.c

index 95fcac7..2537e68 100644 (file)
@@ -573,7 +573,7 @@ static int __maybe_unused imx_clk_scu_resume(struct device *dev)
                        !ret ? "success" : "failed");
        }
 
-       if (clk->is_enabled) {
+       if (clk->is_enabled && rsrc_id != IMX_SC_R_PI_0_PLL) {
                ret = clk_scu_prepare(&clk->hw);
                dev_dbg(dev, "restore enabled state %s\n",
                        !ret ? "success" : "failed");