]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 3 Jan 2024 20:20:18 +0000 (21:20 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:58 +0000 (18:21 -0400)
[ Upstream commit 117e7dc697c2739d754db8fe0c1e2d4f1f5d5f82 ]

SDM845 downstream uses non-default values for GDSC internal waits.
Program them accordingly to avoid surprises.

Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Caleb Connolly <caleb.connolly@linaro.org> # OnePlus 6
Link: https://lore.kernel.org/r/20240103-topic-845gdsc-v1-1-368efbe1a61d@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/dispcc-sdm845.c

index 5c932cd17b140db07ad2bb2feac430699a916abf..8cd8174ac9aa714439934108e55087cbd0da4a7b 100644 (file)
@@ -768,6 +768,8 @@ static struct clk_branch disp_cc_mdss_vsync_clk = {
 
 static struct gdsc mdss_gdsc = {
        .gdscr = 0x3000,
+       .en_few_wait_val = 0x6,
+       .en_rest_wait_val = 0x5,
        .pd = {
                .name = "mdss_gdsc",
        },