clk: qcom: gdsc: Add support to update GDSC transition delay
authorTaniya Das <tdas@codeaurora.org>
Wed, 23 Feb 2022 18:56:05 +0000 (00:26 +0530)
committerStephen Boyd <sboyd@kernel.org>
Fri, 25 Feb 2022 00:11:42 +0000 (16:11 -0800)
commit4e7c4d3652f96f41179aab3ff53025c7a550d689
treed8c0d16cf1c5d1df65b33214bce67c5d1f495db5
parent2f0754f27a230fee6e6d753f07585cee03bedfe3
clk: qcom: gdsc: Add support to update GDSC transition delay

GDSCs have multiple transition delays which are used for the GDSC FSM
states. Older targets/designs required these values to be updated from
gdsc code to certain default values for the FSM state to work as
expected. But on the newer targets/designs the values updated from the
GDSC driver can hamper the FSM state to not work as expected.

On SC7180 we observe black screens because the gdsc is being
enabled/disabled very rapidly and the GDSC FSM state does not work as
expected. This is due to the fact that the GDSC reset value is being
updated from SW.

Thus add support to update the transition delay from the clock
controller gdscs as required.

Fixes: 45dd0e55317cc ("clk: qcom: Add support for GDSCs)
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/20220223185606.3941-1-tdas@codeaurora.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gdsc.c
drivers/clk/qcom/gdsc.h