From: Jiawen Liu <liu1298662399@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Peter Griffin <peter.griffin@linaro.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>
Cc: Alim Akhtar <alim.akhtar@samsung.com>,
linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors
Date: Sun, 29 Nov 2026 19:25:33 +0000 [thread overview]
Message-ID: <179598033933.2.16274950563244133260.pattern-ext-106.14@gmail.com> (raw)
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
next reply other threads:[~2026-11-29 19:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 19:25 Jiawen Liu [this message]
2026-11-30 2:01 ` [PATCH] clk: samsung: exynos-arm64: Propagate CMU resume clock errors Krzysztof Kozlowski
2026-11-30 2:11 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179598033933.2.16274950563244133260.pattern-ext-106.14@gmail.com \
--to=liu1298662399@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=bmasney+clk@redhat.com \
--cc=cw00.choi@samsung.com \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox