* [PATCH] soc: qcom: gsbi: fix double disable caused by devm
@ 2025-10-20 16:02 Haotian Zhang
2025-10-20 16:03 ` kernel test robot
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Haotian Zhang @ 2025-10-20 16:02 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-kernel, stable, Haotian Zhang
In the commit referenced by the Fixes tag, devm_clk_get_enabled() was
introduced to replace devm_clk_get() and clk_prepare_enable(). While
the clk_disable_unprepare() call in the error path was correctly
removed, the one in the remove function was overlooked, leading to a
double disable issue.
Remove the redundant clk_disable_unprepare() call from gsbi_remove()
to fix this issue. Since all resources are now managed by devres
and will be automatically released, the remove function serves no purpose
and can be deleted entirely.
Fixes: 489d7a8cc286 ("soc: qcom: use devm_clk_get_enabled() in gsbi_probe()")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
---
drivers/soc/qcom/qcom_gsbi.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c
index 8f1158e0c631..a25d1de592f0 100644
--- a/drivers/soc/qcom/qcom_gsbi.c
+++ b/drivers/soc/qcom/qcom_gsbi.c
@@ -212,13 +212,6 @@ static int gsbi_probe(struct platform_device *pdev)
return of_platform_populate(node, NULL, NULL, &pdev->dev);
}
-static void gsbi_remove(struct platform_device *pdev)
-{
- struct gsbi_info *gsbi = platform_get_drvdata(pdev);
-
- clk_disable_unprepare(gsbi->hclk);
-}
-
static const struct of_device_id gsbi_dt_match[] = {
{ .compatible = "qcom,gsbi-v1.0.0", },
{ },
@@ -232,7 +225,6 @@ static struct platform_driver gsbi_driver = {
.of_match_table = gsbi_dt_match,
},
.probe = gsbi_probe,
- .remove = gsbi_remove,
};
module_platform_driver(gsbi_driver);
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: qcom: gsbi: fix double disable caused by devm
2025-10-20 16:02 [PATCH] soc: qcom: gsbi: fix double disable caused by devm Haotian Zhang
@ 2025-10-20 16:03 ` kernel test robot
2025-10-21 8:51 ` Konrad Dybcio
2025-10-27 14:09 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-10-20 16:03 UTC (permalink / raw)
To: Haotian Zhang; +Cc: stable, oe-kbuild-all
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
Rule: add the tag "Cc: stable@vger.kernel.org" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH] soc: qcom: gsbi: fix double disable caused by devm
Link: https://lore.kernel.org/stable/20251020160215.523-1-vulab%40iscas.ac.cn
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: qcom: gsbi: fix double disable caused by devm
2025-10-20 16:02 [PATCH] soc: qcom: gsbi: fix double disable caused by devm Haotian Zhang
2025-10-20 16:03 ` kernel test robot
@ 2025-10-21 8:51 ` Konrad Dybcio
2025-10-27 14:09 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2025-10-21 8:51 UTC (permalink / raw)
To: Haotian Zhang, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-kernel, stable
On 10/20/25 6:02 PM, Haotian Zhang wrote:
> In the commit referenced by the Fixes tag, devm_clk_get_enabled() was
> introduced to replace devm_clk_get() and clk_prepare_enable(). While
> the clk_disable_unprepare() call in the error path was correctly
> removed, the one in the remove function was overlooked, leading to a
> double disable issue.
>
> Remove the redundant clk_disable_unprepare() call from gsbi_remove()
> to fix this issue. Since all resources are now managed by devres
> and will be automatically released, the remove function serves no purpose
> and can be deleted entirely.
>
> Fixes: 489d7a8cc286 ("soc: qcom: use devm_clk_get_enabled() in gsbi_probe()")
> Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: qcom: gsbi: fix double disable caused by devm
2025-10-20 16:02 [PATCH] soc: qcom: gsbi: fix double disable caused by devm Haotian Zhang
2025-10-20 16:03 ` kernel test robot
2025-10-21 8:51 ` Konrad Dybcio
@ 2025-10-27 14:09 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2025-10-27 14:09 UTC (permalink / raw)
To: Konrad Dybcio, Haotian Zhang; +Cc: linux-arm-msm, linux-kernel, stable
On Tue, 21 Oct 2025 00:02:15 +0800, Haotian Zhang wrote:
> In the commit referenced by the Fixes tag, devm_clk_get_enabled() was
> introduced to replace devm_clk_get() and clk_prepare_enable(). While
> the clk_disable_unprepare() call in the error path was correctly
> removed, the one in the remove function was overlooked, leading to a
> double disable issue.
>
> Remove the redundant clk_disable_unprepare() call from gsbi_remove()
> to fix this issue. Since all resources are now managed by devres
> and will be automatically released, the remove function serves no purpose
> and can be deleted entirely.
>
> [...]
Applied, thanks!
[1/1] soc: qcom: gsbi: fix double disable caused by devm
commit: 2286e18e3937c69cc103308a8c1d4898d8a7b04f
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-27 14:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 16:02 [PATCH] soc: qcom: gsbi: fix double disable caused by devm Haotian Zhang
2025-10-20 16:03 ` kernel test robot
2025-10-21 8:51 ` Konrad Dybcio
2025-10-27 14:09 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox