soc: mediatek: fix missing clk_disable_unprepare() on err in svs_resume()
PATCH 1/1 soc: mediatek: fix missing clk_disable_unprepare() on err in svs_resume()
Fix the missing clk_disable_unprepare() before return from svs_resume() in the error handling case.
--- drivers/soc/mediatek/mtk-svs.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/mediatek/mtk-svs.c +1 -0
@@ -1525,6 +1525,7 @@ static int svs_resume(struct device *dev) ret =reset_control_deassert (svsp->rst);if (ret) { +clk_disable_unprepare (svsp->main_clk);dev_err (svsp->dev,"cannot deassert reset %d\n" , ret);return ret; }
Signature · 1 line
2.17.1
Matthias Brugger
maintainerQuoted 14 lines · Peng Wu
Fix the missing
clk_disable_unprepare()before return fromsvs_resume()in the error handling case.Signed-off-by Peng Wu <[email protected]>Reported-by Hulk Robot <[email protected]>--- drivers/soc/mediatek/mtk-svs.c | 1 + 1 file changed, 1 insertion(+)drivers/soc/mediatek/mtk-svs.c +0
-0
drivers/soc/mediatek/mtk-svs.c static int svs_resume(struct device *dev) · line 1528
Quoted 4 lines
drivers/soc/mediatek/mtk-svs.c +1
-0@@ -1525,6 +1525,7 @@ static int svs_resume(struct device *dev) ret =reset_control_deassert (svsp->rst);if (ret) { +clk_disable_unprepare (svsp->main_clk);
Same holds for the error path of svs_init02(), correct?
Regards,
Matthias
Quoted 3 lines
drivers/soc/mediatek/mtk-svs.c +0
-0dev_err (svsp->dev,"cannot deassert reset %d\n" , ret);return ret; }
Quoted 23 lines · Matthias Brugger
Quoted 14 lines · Peng Wu
Fix the missing
clk_disable_unprepare()before return fromsvs_resume()in the error handling case.Signed-off-by Peng Wu <[email protected]>Reported-by Hulk Robot <[email protected]>---
drivers/soc/mediatek/mtk-svs.c| 1 +1 file changed, 1 insertion(+)drivers/soc/mediatek/mtk-svs.c +0
-0drivers/soc/mediatek/mtk-svs.c static int svs_resume(struct device *dev) · line 1527
Quoted 3 lines
drivers/soc/mediatek/mtk-svs.c +1
-0@@ -1525,6 +1525,7 @@ static int svs_resume(struct device *dev) ret = reset_control_deassert(svsp->rst); if (ret) { + clk_disable_unprepare(svsp->main_clk);Same holds for the error path of
svs_init02(), correct?
Quoted 7 lines
Regards,
Matthiasdrivers/soc/mediatek/mtk-svs.c static int svs_resume(struct device *dev) · line 1531
Quoted 3 lines
drivers/soc/mediatek/mtk-svs.c +0
-0dev_err(svsp->dev, "cannot deassert reset %d\n", ret); return ret; }.
Yes, the error path of svs_init02() requires the same operation. I will resubmit a patch.
Regards,
Peng