Skip to content

Commit a01ef02

Browse files
lweiss-fairphoneandersson
authored andcommitted
clk: qcom: gcc-sm6350: Update the .pwrsts for usb gdscs
The USB controllers on sm6350 do not retain the 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. Fix this by updating the .pwrsts for the USB GDSCs so they only transition to retention state in low power. Cc: Rajendra Nayak <quic_rjendra@quicinc.com> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220928132853.179425-1-luca.weiss@fairphone.com
1 parent 27da533 commit a01ef02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/qcom/gcc-sm6350.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ static struct gdsc usb30_prim_gdsc = {
23162316
.pd = {
23172317
.name = "usb30_prim_gdsc",
23182318
},
2319-
.pwrsts = PWRSTS_OFF_ON,
2319+
.pwrsts = PWRSTS_RET_ON,
23202320
};
23212321

23222322
static struct gdsc ufs_phy_gdsc = {

0 commit comments

Comments
 (0)