]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: qcom: gpucc-sa8775p: Update wait_val fields for GPU GDSC's
authorTaniya Das <quic_tdas@quicinc.com>
Wed, 12 Jun 2024 11:08:26 +0000 (16:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2024 07:00:11 +0000 (09:00 +0200)
[ Upstream commit 211681998d706d1e0fff6b62f89efcdf29c24978 ]

Update wait_val fields as per the default hardware values of the GDSC as
otherwise it would lead to GDSC FSM state stuck causing power on/off
failures of the GSDC.

Fixes: 0afa16afc36d ("clk: qcom: add the GPUCC driver for sa8775p")
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240612-sa8775p-v2-gcc-gpucc-fixes-v2-6-adcc756a23df@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/gpucc-sa8775p.c

index 1f7a02a7503d4e4ad5191734d44ee1b813583c99..3deabf8333883002bff79852f0f1b7c2e9f2b299 100644 (file)
@@ -523,6 +523,9 @@ static struct clk_regmap *gpu_cc_sa8775p_clocks[] = {
 
 static struct gdsc cx_gdsc = {
        .gdscr = 0x9108,
+       .en_rest_wait_val = 0x2,
+       .en_few_wait_val = 0x2,
+       .clk_dis_wait_val = 0xf,
        .gds_hw_ctrl = 0x953c,
        .pd = {
                .name = "cx_gdsc",
@@ -533,6 +536,9 @@ static struct gdsc cx_gdsc = {
 
 static struct gdsc gx_gdsc = {
        .gdscr = 0x905c,
+       .en_rest_wait_val = 0x2,
+       .en_few_wait_val = 0x2,
+       .clk_dis_wait_val = 0xf,
        .pd = {
                .name = "gx_gdsc",
                .power_on = gdsc_gx_do_nothing_enable,