]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: gpucc-sm6350: Add *_wait_val values for GDSCs
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 25 Apr 2025 12:12:58 +0000 (14:12 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 May 2025 20:18:31 +0000 (13:18 -0700)
commitd988b0b866c2aeb23aa74022b5bbd463165a7a33
treefa316f1c916364e26dd52100afe090ea98abbedd
parentafdfd829a99e467869e3ca1955fb6c6e337c340a
clk: qcom: gpucc-sm6350: Add *_wait_val values for GDSCs

Compared to the msm-4.19 driver the mainline GDSC driver always sets the
bits for en_rest, en_few & clk_dis, and if those values are not set
per-GDSC in the respective driver then the default value from the GDSC
driver is used. The downstream driver only conditionally sets
clk_dis_wait_val if qcom,clk-dis-wait-val is given in devicetree.

Correct this situation by explicitly setting those values. For all GDSCs
the reset value of those bits are used, with the exception of
gpu_cx_gdsc which has an explicit value (qcom,clk-dis-wait-val = <8>).

Fixes: 013804a727a0 ("clk: qcom: Add GPU clock controller driver for SM6350")
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Taniya Das <quic_tdas@quicinc.com>
Link: https://lore.kernel.org/r/20250425-sm6350-gdsc-val-v1-4-1f252d9c5e4e@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gpucc-sm6350.c