clk: qcom: gcc-msm8998: Update the .pwrsts for usb gdsc
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 7 Mar 2023 12:31:59 +0000 (13:31 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 22 Mar 2023 03:37:22 +0000 (20:37 -0700)
commit83fddbcc833766d02d8bcdb3a3866f0c20b02349
treeacd41ebfbe57901c89f23b1aa1cb42ca2dc7218b
parent78a2f2a04fb5f1182f03f2ed1f9433982f66346f
clk: qcom: gcc-msm8998: Update the .pwrsts for usb gdsc

The USB controller on msm8998 doesn't retain its state when the system
goes into low power state and the GDSCs are turned off.

This can be observed by the USB connection not coming back alive after
putting the device into suspend, essentially breaking USB.

Work around this by updating the .pwrsts for the USB GDSCs so they only
transition to retention state in low power.

This change should be reverted when a proper suspend sequence is
implemented in the USB drivers.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230307123159.3797551-3-konrad.dybcio@linaro.org
drivers/clk/qcom/gcc-msm8998.c