Skip to content

Commit d995de0

Browse files
committed
WORKAROUND: clk: qcom: gcc-sa8775p: Use PWRSTS_RET_ON for USB GDSCs
The USB GDSCs on SA8775P are currently configured with PWRSTS_OFF_ON, which allows the GDSC framework to fully collapse these power domains during gdsc_disable(). When these GDSCs collapse, the corresponding USB PHY configurations are not retained in USB host mode use-cases and this breaks the resume of USB controller from suspend. To avoid this, configure the USB GDSC power states to PWRSTS_RET_ON. This prevents the GDSC from powering off during gdsc_disable(), and allows hardware to retain the PHY configurations across USB host mode use-cases. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
1 parent f7beaa7 commit d995de0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/clk/qcom/gcc-sa8775p.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,7 +4261,7 @@ static struct gdsc usb20_prim_gdsc = {
42614261
.pd = {
42624262
.name = "usb20_prim_gdsc",
42634263
},
4264-
.pwrsts = PWRSTS_OFF_ON,
4264+
.pwrsts = PWRSTS_RET_ON,
42654265
.flags = RETAIN_FF_ENABLE | POLL_CFG_GDSCR,
42664266
};
42674267

@@ -4273,7 +4273,7 @@ static struct gdsc usb30_prim_gdsc = {
42734273
.pd = {
42744274
.name = "usb30_prim_gdsc",
42754275
},
4276-
.pwrsts = PWRSTS_OFF_ON,
4276+
.pwrsts = PWRSTS_RET_ON,
42774277
.flags = RETAIN_FF_ENABLE | POLL_CFG_GDSCR,
42784278
};
42794279

@@ -4285,7 +4285,7 @@ static struct gdsc usb30_sec_gdsc = {
42854285
.pd = {
42864286
.name = "usb30_sec_gdsc",
42874287
},
4288-
.pwrsts = PWRSTS_OFF_ON,
4288+
.pwrsts = PWRSTS_RET_ON,
42894289
.flags = RETAIN_FF_ENABLE | POLL_CFG_GDSCR,
42904290
};
42914291

0 commit comments

Comments
 (0)