[PATCH 8/8] PCI: qcom: Keep GDSC enabled during non-D3cold suspend
Jagadeesh Kona
jagadeesh.kona at oss.qualcomm.com
Thu Nov 26 10:57:16 PST 2026
From: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>
The PCIe controller powers down the link during D3cold suspend but the
GDSC is required to be kept ON for non-D3 cold usecases.
Set the GDSC hwmode to true for non-D3cold suspend paths to keep the
GDSC ON during suspend since the link remains operational and the
controller resources are still required and set it to false for the D3cold
link shutdown sequence to disable the GDSC.
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>
Signed-off-by: Jagadeesh Kona <jagadeesh.kona at oss.qualcomm.com>
---
drivers/pci/controller/dwc/pcie-qcom.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
index eba1b2cb30f0a22b22a40aaf2ec75cafc12b054b..a4cbd7dc896e5472dd2cfda3846c6ff38cf34ef3 100644
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@ -26,6 +26,7 @@
#include <linux/pci.h>
#include <linux/pci-ecam.h>
#include <linux/pci-pwrctrl.h>
+#include <linux/pm_domain.h>
#include <linux/pm_opp.h>
#include <linux/pm_runtime.h>
#include <linux/platform_device.h>
@@ -2495,7 +2496,12 @@ static int qcom_pcie_suspend_noirq(struct device *dev)
if (pcie->use_pm_opp)
dev_pm_opp_set_opp(pcie->pci->dev, NULL);
+
+ dev_pm_genpd_set_hwmode(dev, false);
} else {
+ /* Keep the GDSC ON in non-D3 cold usecase. */
+ dev_pm_genpd_set_hwmode(dev, true);
+
/*
* Set minimum bandwidth required to keep data path
* functional during suspend.
--
2.56.0
More information about the linux-phy
mailing list