[PATCH v2 0/2] PCI: dwc: Suspend/resume rework

Manivannan Sadhasivam via B4 Relay posted 2 patches 1 month, 3 weeks ago
drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++++++++---
drivers/pci/controller/dwc/pcie-designware.c      | 12 +++++++++++-
2 files changed, 20 insertions(+), 4 deletions(-)
[PATCH v2 0/2] PCI: dwc: Suspend/resume rework
Posted by Manivannan Sadhasivam via B4 Relay 1 month, 3 weeks ago
Hi,

This series is a rework of [1] to allow DWC vendor glue drivers to use the
dw_pcie_suspend_noirq() and dw_pcie_resume_noirq() APIs without failures as
reported in [2][3].

Currently, both of these APIs will fail if there is no device connected to the
bus. This is not fair as suspend/resume should continue even if there is no
device. Hence, this series tries to address this limitation.

- Mani

[1] https://lore.kernel.org/linux-pci/20251107044319.8356-4-manivannan.sadhasivam@oss.qualcomm.com/
[2] https://lore.kernel.org/linux-pci/CAKfTPtCtHquxtK=Zx2WSNm15MmqeUXO8XXi8FkS4EpuP80PP7g@mail.gmail.com/
[3] https://lore.kernel.org/linux-pci/27516921.17f2.1997bb2a498.Coremail.zhangsenchuan@eswincomputing.com/

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
Changes in v2:
- Changed the logic to check for Detect.Quiet/Active states
- Collected tags and rebased on top of v6.19-rc1
- Link to v1: https://lore.kernel.org/r/20251119-pci-dwc-suspend-rework-v1-0-aad104828562@oss.qualcomm.com

---
Manivannan Sadhasivam (2):
      PCI: dwc: Skip PME_Turn_Off broadcast and L2/L3 transition during suspend if link is not up
      PCI: dwc: Do not return failure if link is in Detect.Quiet/Active states

 drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++++++++---
 drivers/pci/controller/dwc/pcie-designware.c      | 12 +++++++++++-
 2 files changed, 20 insertions(+), 4 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251119-pci-dwc-suspend-rework-8b0515a38679

Best regards,
-- 
Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Re: (subset) [PATCH v2 0/2] PCI: dwc: Suspend/resume rework
Posted by Manivannan Sadhasivam 1 month, 3 weeks ago
On Thu, 18 Dec 2025 17:34:51 +0530, Manivannan Sadhasivam wrote:
> This series is a rework of [1] to allow DWC vendor glue drivers to use the
> dw_pcie_suspend_noirq() and dw_pcie_resume_noirq() APIs without failures as
> reported in [2][3].
> 
> Currently, both of these APIs will fail if there is no device connected to the
> bus. This is not fair as suspend/resume should continue even if there is no
> device. Hence, this series tries to address this limitation.
> 
> [...]

Applied, thanks!

[1/2] PCI: dwc: Skip PME_Turn_Off broadcast and L2/L3 transition during suspend if link is not up
      commit: c4a86e6600fa082d6646044fcce2183ad5e52283

Best regards,
-- 
Manivannan Sadhasivam <mani@kernel.org>