clk: qcom: gdsc: Enable supply reglator in GPU GX handler
authorBjorn Andersson <quic_bjorande@quicinc.com>
Thu, 25 Jan 2024 21:05:08 +0000 (13:05 -0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 30 Jan 2024 20:48:01 +0000 (14:48 -0600)
commit9187ebb954ab2afe0e79e0ff7771e94d3d1d9e1c
tree008486c10bfedd8655634c68fed6ed47f27cf47c
parente60b95d2b68724baaacc5f7d91cfc3060811a1c1
clk: qcom: gdsc: Enable supply reglator in GPU GX handler

The GX GDSC is modelled to aid the GMU in powering down the GPU in the
event that the GPU crashes, so that it can be restarted again. But in
the event that the power-domain is supplied through a dedicated
regulator (in contrast to being a subdomin of another power-domain),
something needs to turn that regulator on, both to make sure things are
powered and to match the operation in gdsc_disable().

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240125-sa8295p-gpu-v4-2-7011c2a63037@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gdsc.c