Skip to content

Commit 4711d37

Browse files
committed
WORKAROUND: clk: qcom: gcc-qcs8300: Use PWRSTS_RET_ON for USB GDSCs
The USB GDSCs on QCS8300 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 d995de0 commit 4711d37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/clk/qcom/gcc-qcs8300.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,7 @@ static struct gdsc gcc_usb20_prim_gdsc = {
33063306
.pd = {
33073307
.name = "gcc_usb20_prim_gdsc",
33083308
},
3309-
.pwrsts = PWRSTS_OFF_ON,
3309+
.pwrsts = PWRSTS_RET_ON,
33103310
.flags = RETAIN_FF_ENABLE | POLL_CFG_GDSCR,
33113311
};
33123312

@@ -3318,7 +3318,7 @@ static struct gdsc gcc_usb30_prim_gdsc = {
33183318
.pd = {
33193319
.name = "gcc_usb30_prim_gdsc",
33203320
},
3321-
.pwrsts = PWRSTS_OFF_ON,
3321+
.pwrsts = PWRSTS_RET_ON,
33223322
.flags = RETAIN_FF_ENABLE | POLL_CFG_GDSCR,
33233323
};
33243324

0 commit comments

Comments
 (0)