diff options
| author | 2026-09-17 11:06:54 +0200 | |
|---|---|---|
| committer | 2026-10-13 09:49:40 -0500 | |
| commit | 8c0f93e10fa9e34009817bd37bb75c1b5a691fa2 (patch) | |
| tree | ff83e052d7b1ed16e1dda7e1b9269c5c06b5fe0e /scripts/Makefile.thinlto | |
| parent | clk: qcom: rcg2: Initialize shared floor clock state (diff) | |
clk: qcom: rcg2: Propagate force-enable status errors
clk_rcg2_is_enabled() returns either a hardware status or a negative
regmap error. The force-enable polling loop treats every nonzero return as
an enabled clock, so a failed status read is incorrectly reported as
success and clock reconfiguration can continue with unknown hardware
state.
Check for negative returns before testing the enabled status and propagate
the read error to the caller.
Fixes: 7ef6f11887bd ("clk: qcom: Configure the RCGs to a safe source as needed")
Assisted-by: LLM
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Link: https://patch.msgid.link/20260917-topic-qc_clk_fixes-v1-2-5531cb00514b@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
