Skip to content

Commit 35d53b5

Browse files
valpackettgregkh
authored andcommitted
clk: qcom: gcc-sc8180x: Use retention for PCIe power domains
[ Upstream commit ccb92c7 ] As the PCIe host controller driver does not yet support dealing with the loss of state during suspend, use retention for relevant GDSCs. This fixes the link not surviving upon resume: nvme 0002:01:00.0: Unable to change power state from D3cold to D0, device inaccessible nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS read failed (134) nvme 0002:01:00.0: Unable to change power state from D3cold to D0, device inaccessible nvme nvme0: Disabling device after reset failure: -19 Fixes: 4433594 ("clk: qcom: gcc: Add global clock controller driver for SC8180x") Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Val Packett <val@packett.cool> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://lore.kernel.org/r/20260312112321.370983-5-val@packett.cool Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3b2260d commit 35d53b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/clk/qcom/gcc-sc8180x.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4199,7 +4199,7 @@ static struct gdsc pcie_0_gdsc = {
41994199
.pd = {
42004200
.name = "pcie_0_gdsc",
42014201
},
4202-
.pwrsts = PWRSTS_OFF_ON,
4202+
.pwrsts = PWRSTS_RET_ON,
42034203
.flags = POLL_CFG_GDSCR,
42044204
};
42054205

@@ -4226,7 +4226,7 @@ static struct gdsc pcie_1_gdsc = {
42264226
.pd = {
42274227
.name = "pcie_1_gdsc",
42284228
},
4229-
.pwrsts = PWRSTS_OFF_ON,
4229+
.pwrsts = PWRSTS_RET_ON,
42304230
.flags = POLL_CFG_GDSCR,
42314231
};
42324232

@@ -4235,7 +4235,7 @@ static struct gdsc pcie_2_gdsc = {
42354235
.pd = {
42364236
.name = "pcie_2_gdsc",
42374237
},
4238-
.pwrsts = PWRSTS_OFF_ON,
4238+
.pwrsts = PWRSTS_RET_ON,
42394239
.flags = POLL_CFG_GDSCR,
42404240
};
42414241

@@ -4253,7 +4253,7 @@ static struct gdsc pcie_3_gdsc = {
42534253
.pd = {
42544254
.name = "pcie_3_gdsc",
42554255
},
4256-
.pwrsts = PWRSTS_OFF_ON,
4256+
.pwrsts = PWRSTS_RET_ON,
42574257
.flags = POLL_CFG_GDSCR,
42584258
};
42594259

0 commit comments

Comments
 (0)