* [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors
@ 2026-11-29 19:25 Jiawen Liu
2026-11-30 2:01 ` Krzysztof Kozlowski
2026-11-30 2:11 ` Krzysztof Kozlowski
0 siblings, 2 replies; 3+ messages in thread
From: Jiawen Liu @ 2026-11-29 19:25 UTC (permalink / raw)
To: Krzysztof Kozlowski, Sylwester Nawrocki, Chanwoo Choi,
Peter Griffin, Stephen Boyd, Brian Masney, Jerome Brunet
Cc: Alim Akhtar, linux-samsung-soc, linux-clk, linux-arm-kernel
When runtime PM resumes a suspended Exynos5433 audio CMU, enabling
fout_aud_pll can return -ETIMEDOUT if the PLL fails to lock. The
resume callback ignores the error and can restore registers without
the required clock. It then reports success to runtime PM, allowing
a later suspend to release a clock reference that resume never acquired.
Return the error from clk_prepare_enable() before enabling temporary
parent clocks or restoring registers. The clock framework rolls back
preparation if enable fails. On success, the callback keeps its clock
reference until suspend.
Verification included static
review of the clock and PM paths, ARM64 builds of the Exynos clock
objects with and without CONFIG_PM_SLEEP, and the kernel patch style
check. Runtime and hardware reproduction were not performed.
Fixes: 523d3de41f02 ("clk: samsung: exynos5433: Add support for runtime PM")
Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>
---
drivers/clk/samsung/clk-exynos-arm64.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/samsung/clk-exynos-arm64.c b/drivers/clk/samsung/clk-exynos-arm64.c
index eac59c8df6fa8..e7e88df15e53a 100644
--- a/drivers/clk/samsung/clk-exynos-arm64.c
+++ b/drivers/clk/samsung/clk-exynos-arm64.c
@@ -359,9 +359,11 @@ int exynos_arm64_cmu_suspend(struct device *dev)
int exynos_arm64_cmu_resume(struct device *dev)
{
struct exynos_arm64_cmu_data *data = dev_get_drvdata(dev);
- int i;
+ int i, ret;
- clk_prepare_enable(data->clk);
+ ret = clk_prepare_enable(data->clk);
+ if (ret)
+ return ret;
for (i = 0; i < data->nr_pclks; i++)
clk_prepare_enable(data->pclks[i]);
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors
2026-11-29 19:25 [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors Jiawen Liu
@ 2026-11-30 2:01 ` Krzysztof Kozlowski
2026-11-30 2:11 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-30 2:01 UTC (permalink / raw)
To: Jiawen Liu, Sylwester Nawrocki, Chanwoo Choi, Peter Griffin,
Stephen Boyd, Brian Masney, Jerome Brunet
Cc: Alim Akhtar, linux-samsung-soc, linux-clk, linux-arm-kernel
On 29/11/2026 20:25, Jiawen Liu wrote:
> When runtime PM resumes a suspended Exynos5433 audio CMU, enabling
> fout_aud_pll can return -ETIMEDOUT if the PLL fails to lock. The
> resume callback ignores the error and can restore registers without
> the required clock. It then reports success to runtime PM, allowing
> a later suspend to release a clock reference that resume never acquired.
>
> Return the error from clk_prepare_enable() before enabling temporary
> parent clocks or restoring registers. The clock framework rolls back
> preparation if enable fails. On success, the callback keeps its clock
> reference until suspend.
>
> Verification included static
> review of the clock and PM paths, ARM64 builds of the Exynos clock
> objects with and without CONFIG_PM_SLEEP, and the kernel patch style
> check. Runtime and hardware reproduction were not performed.
Unfortunately "kernel patch style check" is not a step of verification
whether code is correct or not. Do not use LLM to write commit msgs,
they are pretty pointless.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors
2026-11-29 19:25 [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors Jiawen Liu
2026-11-30 2:01 ` Krzysztof Kozlowski
@ 2026-11-30 2:11 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-30 2:11 UTC (permalink / raw)
To: Jiawen Liu
Cc: Sylwester Nawrocki, linux-clk, Stephen Boyd, linux-arm-kernel,
Jerome Brunet, linux-samsung-soc, Chanwoo Choi, Brian Masney,
Alim Akhtar, Peter Griffin
On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote:
> When runtime PM resumes a suspended Exynos5433 audio CMU, enabling
> fout_aud_pll can return -ETIMEDOUT if the PLL fails to lock. The
> resume callback ignores the error and can restore registers without
> the required clock. It then reports success to runtime PM, allowing
> a later suspend to release a clock reference that resume never acquired.
>
> Return the error from clk_prepare_enable() before enabling temporary
> parent clocks or restoring registers. The clock framework rolls back
> preparation if enable fails. On success, the callback keeps its clock
> reference until suspend.
>
> Verification included static
> review of the clock and PM paths, ARM64 builds of the Exynos clock
> objects with and without CONFIG_PM_SLEEP, and the kernel patch style
> check. Runtime and hardware reproduction were not performed.
>
> Fixes: 523d3de41f02 ("clk: samsung: exynos5433: Add support for runtime PM")
> Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>
> ---
> drivers/clk/samsung/clk-exynos-arm64.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.
More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.
Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-30 2:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 19:25 [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors Jiawen Liu
2026-11-30 2:01 ` Krzysztof Kozlowski
2026-11-30 2:11 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox