Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH 0/8] clk: qcom: gdsc: Allow USB and PCIe GDSCs to stay enabled across suspend
@ 2026-11-26 18:57 Jagadeesh Kona
  2026-11-26 18:57 ` [PATCH 1/8] clk: qcom: gdsc: Use GenPD hwmode to keep GDSC " Jagadeesh Kona
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Jagadeesh Kona @ 2026-11-26 18:57 UTC (permalink / raw)
  To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
	Jerome Brunet, Thinh Nguyen, Greg Kroah-Hartman, Vinod Koul,
	Neil Armstrong, Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
	Ulf Hansson
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-usb, linux-phy, linux-pci, Jagadeesh Kona, Krishna Kurapati,
	Prashanth K, Krishna Chaitanya Chundru

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@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@oss.qualcomm.com
prerequisite-patch-id: d39d8cf075595b668e85fbc6c3cf7234c318602e
prerequisite-patch-id: 5f7421fa9312a84661ff4a87e946f315e8dc27e8

Best regards,
-- 
Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-26 19:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 18:57 [PATCH 0/8] clk: qcom: gdsc: Allow USB and PCIe GDSCs to stay enabled across suspend Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 1/8] clk: qcom: gdsc: Use GenPD hwmode to keep GDSC " Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 2/8] clk: qcom: gcc-glymur: Register set_hwmode_dev callback for USB, PCIe GDSCs Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 3/8] clk: qcom: gcc-qcs615: " Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 4/8] clk: qcom: gcc-shikra: " Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 5/8] usb: dwc3: qcom: Add support to keep GDSC On during host mode bus suspend Jagadeesh Kona
2026-11-26 19:18   ` sashiko-bot
2026-11-26 18:57 ` [PATCH 6/8] phy: qcom: combo: Keep the PHY GDSC ON during host " Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 7/8] phy: qcom: usb: " Jagadeesh Kona
2026-11-26 18:57 ` [PATCH 8/8] PCI: qcom: Keep GDSC enabled during non-D3cold suspend Jagadeesh Kona

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox