Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 6eb1a9a

Browse files
Mani-Sadhasivamgregkh
authored andcommitted
clk: qcom: gcc-sm8450: Do not turn off PCIe GDSCs during gdsc_disable()
commit 889e133 upstream. With PWRSTS_OFF_ON, PCIe GDSCs are turned off during gdsc_disable(). This can happen during scenarios such as system suspend and breaks the resume of PCIe controllers from suspend. So use PWRSTS_RET_ON to indicate the GDSC driver to not turn off the GDSCs during gdsc_disable() and allow the hardware to transition the GDSCs to retention when the parent domain enters low power state during system suspend. Cc: stable@vger.kernel.org # 5.17 Fixes: db0c944 ("clk: qcom: Add clock driver for SM8450") Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20240722105733.13040-1-manivannan.sadhasivam@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7e27409 commit 6eb1a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/qcom/gcc-sm8450.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2974,15 +2974,15 @@ static struct gdsc pcie_0_gdsc = {
29742974
.pd = {
29752975
.name = "pcie_0_gdsc",
29762976
},
2977-
.pwrsts = PWRSTS_OFF_ON,
2977+
.pwrsts = PWRSTS_RET_ON,
29782978
};
29792979

29802980
static struct gdsc pcie_1_gdsc = {
29812981
.gdscr = 0x9d004,
29822982
.pd = {
29832983
.name = "pcie_1_gdsc",
29842984
},
2985-
.pwrsts = PWRSTS_OFF_ON,
2985+
.pwrsts = PWRSTS_RET_ON,
29862986
};
29872987

29882988
static struct gdsc ufs_phy_gdsc = {

0 commit comments

Comments
 (0)