aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/imx/clk-scu.c
diff options
context:
space:
mode:
authorGravatar Dong Aisheng <aisheng.dong@nxp.com> 2021-06-04 17:09:38 +0800
committerGravatar Abel Vesa <abel.vesa@nxp.com> 2021-06-14 12:34:30 +0300
commita61cea83daafc60618be3ac89dc6c5e2d1367697 (patch)
tree1588ce7d9400a3e988309dfe50a59314cfc5a570 /drivers/clk/imx/clk-scu.c
parentclk: imx: scu: detach pd if can't power up (diff)
downloadlinux-a61cea83daafc60618be3ac89dc6c5e2d1367697.tar.gz
linux-a61cea83daafc60618be3ac89dc6c5e2d1367697.tar.bz2
linux-a61cea83daafc60618be3ac89dc6c5e2d1367697.zip
clk: imx: scu: bypass pi_pll enable status restore
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>
Diffstat (limited to 'drivers/clk/imx/clk-scu.c')
-rw-r--r--drivers/clk/imx/clk-scu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c
index 95fcac7f73b6..2537e68ded16 100644
--- a/drivers/clk/imx/clk-scu.c
+++ b/drivers/clk/imx/clk-scu.c
@@ -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");