[PATCH 2/2] clk: imx: scu: add missing pm_runtime_dont_use_autosuspend() call
From: Joshua Crofts
Date: Tue Sep 15 2026 - 06:53:36 EST
imx_clk_scu_probe() disables PM runtime on failure, but doesn't call the
pm_runtime_dont_use_autosuspend() function, causing potential resource
leaks.
Add the missing function calls.
Found using Coccinelle.
Fixes: 18a50f82cd2f ("clk: imx: scu: Do not enable runtime PM for CPU clks")
Fixes: 78edeb080330 ("clk: imx: scu: add runtime pm support")
Cc: <stable@xxxxxxxxxxxxxxx>
Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
---
drivers/clk/imx/clk-scu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c
index 44220e9c5c2a..18f73e679331 100644
--- a/drivers/clk/imx/clk-scu.c
+++ b/drivers/clk/imx/clk-scu.c
@@ -525,6 +525,7 @@ static int imx_clk_scu_probe(struct platform_device *pdev)
if (ret) {
pm_genpd_remove_device(dev);
pm_runtime_disable(dev);
+ pm_runtime_dont_use_autosuspend(dev);
return ret;
}
}
@@ -533,6 +534,7 @@ static int imx_clk_scu_probe(struct platform_device *pdev)
clk->rsrc, clk->clk_type);
if (IS_ERR(hw)) {
pm_runtime_disable(dev);
+ pm_runtime_dont_use_autosuspend(dev);
return PTR_ERR(hw);
}
--
2.47.3