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

The USB controller on MSM8996 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-2-konrad.dybcio@linaro.org
drivers/clk/qcom/gcc-msm8996.c