Commit d26c4ad3 authored by Abel Vesa's avatar Abel Vesa Committed by Bjorn Andersson
Browse files

clk: qcom: gcc-x1e80100: Do not turn off usb_2 controller GDSC



Allowing the usb_2 controller GDSC to be turned off during system suspend
renders the controller unable to resume.

So use PWRSTS_RET_ON instead in order to make sure this the GDSC doesn't
go down.

Fixes: 161b7c40 ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
Cc: stable@vger.kernel.org      # 6.8
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Tested-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250107-x1e80100-clk-gcc-fix-usb2-gdsc-pwrsts-v1-1-e15d1a5e7d80@linaro.org


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent d966ee05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6083,7 +6083,7 @@ static struct gdsc gcc_usb20_prim_gdsc = {
	.pd = {
		.name = "gcc_usb20_prim_gdsc",
	},
	.pwrsts = PWRSTS_OFF_ON,
	.pwrsts = PWRSTS_RET_ON,
	.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
};