Skip to content

Commit 83fddbc

Browse files
konradybcioandersson
authored andcommitted
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
1 parent 78a2f2a commit 83fddbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/clk/qcom/gcc-msm8998.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2898,7 +2898,8 @@ static struct gdsc usb_30_gdsc = {
28982898
.pd = {
28992899
.name = "usb_30_gdsc",
29002900
},
2901-
.pwrsts = PWRSTS_OFF_ON,
2901+
/* TODO: Change to OFF_ON when USB drivers get proper suspend support */
2902+
.pwrsts = PWRSTS_RET_ON,
29022903
.flags = VOTABLE,
29032904
};
29042905

0 commit comments

Comments
 (0)