[PATCH 0/8] clk: qcom: gdsc: Allow USB and PCIe GDSCs to stay enabled across suspend
Jagadeesh Kona
jagadeesh.kona at oss.qualcomm.com
Thu Nov 26 10:57:08 PST 2026
USB and PCIe GDSCs on some Qualcomm platforms need to remain enabled
across system suspend for certain use cases, such as USB host mode and
PCIe non-D3cold. These GDSCs currently use PWRSTS_RET_ON, which keeps
them enabled after their first enable even when consumers no longer
require them.
These GDSCs have a HW mechanism to stay enabled during suspend while
allowing the parent voltage rails to turn off, with HW handling the
parent transition to active voltage rails. Use the existing GenPD
hwmode interface to let consumers request this behavior only when
required, and clear it once no longer needed, allowing the GDSC to be
powered off when unused.
This series adds the set_hwmode_dev callback for USB and PCIe GDSCs on
Qualcomm Glymur, QCS615 and Shikra platforms, and updates the corresponding
USB and PCIe consumer drivers to use dev_pm_genpd_set_hwmode() to control
the GDSC dynamically.
The clock and USB driver patches need to be picked together on Glymur
to avoid functional issues, since the existing RET_ON flag is removed
in this series. This approach can be extended to more targets in the
future.
This series is based on top of below qmp phy suspend/resume series and
depends on it:
https://lore.kernel.org/all/20261113103111.156476-1-prashanth.k@oss.qualcomm.com/
Signed-off-by: Jagadeesh Kona <jagadeesh.kona at oss.qualcomm.com>
---
Jagadeesh Kona (4):
clk: qcom: gdsc: Use GenPD hwmode to keep GDSC enabled across suspend
clk: qcom: gcc-glymur: Register set_hwmode_dev callback for USB, PCIe GDSCs
clk: qcom: gcc-qcs615: Register set_hwmode_dev callback for USB, PCIe GDSCs
clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB, PCIe GDSCs
Krishna Chaitanya Chundru (1):
PCI: qcom: Keep GDSC enabled during non-D3cold suspend
Krishna Kurapati (1):
usb: dwc3: qcom: Add support to keep GDSC On during host mode bus suspend
Prashanth K (2):
phy: qcom: combo: Keep the PHY GDSC ON during host bus suspend
phy: qcom: usb: Keep the PHY GDSC ON during host bus suspend
drivers/clk/qcom/gcc-glymur.c | 46 ++++++++++++++++++++++++-------
drivers/clk/qcom/gcc-qcs615.c | 3 ++
drivers/clk/qcom/gcc-shikra.c | 3 ++
drivers/clk/qcom/gdsc.c | 21 ++++++++++++++
drivers/clk/qcom/gdsc.h | 2 ++
drivers/pci/controller/dwc/pcie-qcom.c | 6 ++++
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 14 ++++++++++
drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 15 ++++++++++
drivers/usb/dwc3/dwc3-qcom.c | 4 +++
9 files changed, 104 insertions(+), 10 deletions(-)
---
base-commit: 47588e4c16d8876d3058bcec030ed8a016794b9e
change-id: 20261126-usb-pcie-gdsc-suspend-7a99c6b62406
prerequisite-message-id: 20261113103111.156476-1-prashanth.k at oss.qualcomm.com
prerequisite-patch-id: d39d8cf075595b668e85fbc6c3cf7234c318602e
prerequisite-patch-id: 5f7421fa9312a84661ff4a87e946f315e8dc27e8
Best regards,
--
Jagadeesh Kona <jagadeesh.kona at oss.qualcomm.com>
More information about the linux-phy
mailing list