Skip to content

Commit e3ae3e8

Browse files
Rajendra Nayakandersson
authored andcommitted
clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdscs
The USB controllers on sc7280 do not retain the state when the system goes into low power state and the GDSCs are turned off. This results in the controllers reinitializing and re-enumerating all the connected devices (resulting in additional delay while coming out of suspend) Fix this by updating the .pwrsts for the USB GDSCs so they only transition to retention state in low power. Since sc7280 only supports cx (parent of usb gdscs) Retention, there are no cxcs offsets mentioned in order to support the Retention state. Signed-off-by: Rajendra Nayak <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Tested-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d9fe9f3 commit e3ae3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/qcom/gcc-sc7280.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ static struct gdsc gcc_usb30_prim_gdsc = {
31263126
.pd = {
31273127
.name = "gcc_usb30_prim_gdsc",
31283128
},
3129-
.pwrsts = PWRSTS_OFF_ON,
3129+
.pwrsts = PWRSTS_RET_ON,
31303130
.flags = VOTABLE,
31313131
};
31323132

@@ -3135,7 +3135,7 @@ static struct gdsc gcc_usb30_sec_gdsc = {
31353135
.pd = {
31363136
.name = "gcc_usb30_sec_gdsc",
31373137
},
3138-
.pwrsts = PWRSTS_OFF_ON,
3138+
.pwrsts = PWRSTS_RET_ON,
31393139
.flags = VOTABLE,
31403140
};
31413141

0 commit comments

Comments
 (0)