OSDN Git Service

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

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