Commit ffe92326 authored by Taniya Das's avatar Taniya Das Committed by Greg Kroah-Hartman
Browse files

clk: qcom: gdsc: Set retain_ff before moving to HW CTRL



[ Upstream commit 25708f73 ]

Enable the retain_ff_enable bit of GDSCR only if the GDSC is already ON.
Once the GDSCR moves to HW control, SW no longer can determine the state
of the GDSCR and setting the retain_ff bit could destroy all the register
contents we intended to save.
Therefore, move the retain_ff configuration before switching the GDSC to
HW trigger mode.

Cc: stable@vger.kernel.org
Fixes: 17372299 ("clk: qcom: gdsc: Add support to enable retention of GSDCR")
Signed-off-by: default avatarTaniya Das <quic_tdas@quicinc.com>
Reviewed-by: default avatarImran Shaik <quic_imrashai@quicinc.com>
Tested-by: Imran Shaik <quic_imrashai@quicinc.com> # on QCS8300
Link: https://lore.kernel.org/r/20250214-gdsc_fixes-v1-1-73e56d68a80f@quicinc.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
[ Changed error path ]
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b01a706f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment