Skip to content

Commit 673989d

Browse files
lweiss-fairphoneandersson
authored andcommitted
clk: qcom: dispcc-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. Fixes: 8375197 ("clk: qcom: Add display 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-2-1f252d9c5e4e@fairphone.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent e7b1c13 commit 673989d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clk/qcom/dispcc-sm6350.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ static struct clk_branch disp_cc_xo_clk = {
681681

682682
static struct gdsc mdss_gdsc = {
683683
.gdscr = 0x1004,
684+
.en_rest_wait_val = 0x2,
685+
.en_few_wait_val = 0x2,
686+
.clk_dis_wait_val = 0xf,
684687
.pd = {
685688
.name = "mdss_gdsc",
686689
},

0 commit comments

Comments
 (0)