Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: gcc-sm8450: Do not turn off PCIe GDSCs during gdsc_disable()

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: db0c944ee92b ("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>

authored by

Manivannan Sadhasivam and committed by
Bjorn Andersson
889e1332 ade508b5

+2 -2
+2 -2
drivers/clk/qcom/gcc-sm8450.c
··· 2974 2974 .pd = { 2975 2975 .name = "pcie_0_gdsc", 2976 2976 }, 2977 - .pwrsts = PWRSTS_OFF_ON, 2977 + .pwrsts = PWRSTS_RET_ON, 2978 2978 }; 2979 2979 2980 2980 static struct gdsc pcie_1_gdsc = { ··· 2982 2982 .pd = { 2983 2983 .name = "pcie_1_gdsc", 2984 2984 }, 2985 - .pwrsts = PWRSTS_OFF_ON, 2985 + .pwrsts = PWRSTS_RET_ON, 2986 2986 }; 2987 2987 2988 2988 static struct gdsc ufs_phy_gdsc = {