Skip to content

Commit afdfd82

Browse files
lweiss-fairphoneandersson
authored andcommitted
clk: qcom: gcc-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: 131abae ("clk: qcom: Add SM6350 GCC driver") 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-3-1f252d9c5e4e@fairphone.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 673989d commit afdfd82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/clk/qcom/gcc-sm6350.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,6 +2320,9 @@ static struct clk_branch gcc_video_xo_clk = {
23202320

23212321
static struct gdsc usb30_prim_gdsc = {
23222322
.gdscr = 0x1a004,
2323+
.en_rest_wait_val = 0x2,
2324+
.en_few_wait_val = 0x2,
2325+
.clk_dis_wait_val = 0xf,
23232326
.pd = {
23242327
.name = "usb30_prim_gdsc",
23252328
},
@@ -2328,6 +2331,9 @@ static struct gdsc usb30_prim_gdsc = {
23282331

23292332
static struct gdsc ufs_phy_gdsc = {
23302333
.gdscr = 0x3a004,
2334+
.en_rest_wait_val = 0x2,
2335+
.en_few_wait_val = 0x2,
2336+
.clk_dis_wait_val = 0xf,
23312337
.pd = {
23322338
.name = "ufs_phy_gdsc",
23332339
},

0 commit comments

Comments
 (0)