Skip to content

Commit 27da533

Browse files
jhovoldandersson
authored andcommitted
clk: qcom: gcc-sc8280xp: use retention for USB power domains
Since commit d399723 ("clk: qcom: gdsc: Fix the handling of PWRSTS_RET support) retention mode can be used on sc8280xp to maintain state during suspend instead of leaving the domain always on. This is needed to eventually allow the parent CX domain to be powered down during suspend. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220929161124.18138-1-johan+linaro@kernel.org
1 parent eab4c1e commit 27da533

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

drivers/clk/qcom/gcc-sc8280xp.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6843,35 +6843,28 @@ static struct gdsc ufs_phy_gdsc = {
68436843
.pwrsts = PWRSTS_OFF_ON,
68446844
};
68456845

6846-
/*
6847-
* The Qualcomm DWC3 driver suspend implementation appears to be incomplete
6848-
* for sc8280xp so keep the USB power domains always-on for now.
6849-
*/
68506846
static struct gdsc usb30_mp_gdsc = {
68516847
.gdscr = 0xab004,
68526848
.pd = {
68536849
.name = "usb30_mp_gdsc",
68546850
},
6855-
.pwrsts = PWRSTS_OFF_ON,
6856-
.flags = ALWAYS_ON,
6851+
.pwrsts = PWRSTS_RET_ON,
68576852
};
68586853

68596854
static struct gdsc usb30_prim_gdsc = {
68606855
.gdscr = 0xf004,
68616856
.pd = {
68626857
.name = "usb30_prim_gdsc",
68636858
},
6864-
.pwrsts = PWRSTS_OFF_ON,
6865-
.flags = ALWAYS_ON,
6859+
.pwrsts = PWRSTS_RET_ON,
68666860
};
68676861

68686862
static struct gdsc usb30_sec_gdsc = {
68696863
.gdscr = 0x10004,
68706864
.pd = {
68716865
.name = "usb30_sec_gdsc",
68726866
},
6873-
.pwrsts = PWRSTS_OFF_ON,
6874-
.flags = ALWAYS_ON,
6867+
.pwrsts = PWRSTS_RET_ON,
68756868
};
68766869

68776870
static struct clk_regmap *gcc_sc8280xp_clocks[] = {

0 commit comments

Comments
 (0)