mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] bus: mhi: host: Do not abort system suspend when the MHI device is busy
@ 2026-12-02  8:43 Manivannan Sadhasivam via B4 Relay
  2026-12-02  8:43 ` [PATCH 1/2] bus: mhi: host: Add mhi_pm_suspend_force() API Manivannan Sadhasivam via B4 Relay
  2026-12-02  8:43 ` [PATCH 2/2] bus: mhi: host: pci_generic: Use mhi_pm_suspend_force() for system suspend Manivannan Sadhasivam via B4 Relay
  0 siblings, 2 replies; 7+ messages in thread
From: Manivannan Sadhasivam via B4 Relay @ 2026-12-02  8:43 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Jeff Hugo, Loic Poulain
  Cc: mhi, linux-arm-msm, linux-kernel, Abel Vesa, Len Brown,
	Manivannan Sadhasivam, stable

Hi,

This series fixes the system suspend issue reported on both Qcom Glymur based
laptops and Lenovo Thinkpad T16. The MHI driver was preventing the system
suspend by erroring out the suspend callback if the device was busy. But now,
the series tries to drain the in flight uplink transfers and proceeds with the
system suspend upon timeout. During resume, the resume callback will recover
the device if needed.

This series supersedes the series from Len Brown [1], which just ignored the
error returned by the suspend callback. That lets system suspend proceed, but
the failed suspend has already cleared MHI_PCI_DEV_SUSPENDED, so the resume
callback bails out early and never recovers a device that lost power while
suspended.

[1] https://lore.kernel.org/mhi/20261113151940.2922539-1-lenb@kernel.org

Testing
=======

I've tested this series on Glymur CRD. But testing needs to be done on Lenovo
Thinkpad T16. I hope Len can test it on his machine.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
Manivannan Sadhasivam (2):
      bus: mhi: host: Add mhi_pm_suspend_force() API
      bus: mhi: host: pci_generic: Use mhi_pm_suspend_force() for system suspend

 drivers/bus/mhi/host/internal.h    |  3 +++
 drivers/bus/mhi/host/pci_generic.c | 18 +++++++++++++-----
 drivers/bus/mhi/host/pm.c          | 38 ++++++++++++++++++++++++++++++++------
 include/linux/mhi.h                | 14 ++++++++++++++
 4 files changed, 62 insertions(+), 11 deletions(-)
---
base-commit: c1d8ed37bf1b82c83c10a390890609e1165bdca4
change-id: 20261202-mhi-suspend-fix-a80ed1ec0dd9

Best regards,
--  
மணிவண்ணன் சதாசிவம்



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

end of thread, other threads:[~2026-12-02 13:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02  8:43 [PATCH 0/2] bus: mhi: host: Do not abort system suspend when the MHI device is busy Manivannan Sadhasivam via B4 Relay
2026-12-02  8:43 ` [PATCH 1/2] bus: mhi: host: Add mhi_pm_suspend_force() API Manivannan Sadhasivam via B4 Relay
2026-12-02 10:15   ` Loic Poulain
2026-12-02 13:19     ` Manivannan Sadhasivam
2026-12-02 13:50   ` Loic Poulain
2026-12-02  8:43 ` [PATCH 2/2] bus: mhi: host: pci_generic: Use mhi_pm_suspend_force() for system suspend Manivannan Sadhasivam via B4 Relay
2026-12-02 10:19   ` Loic Poulain

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

all inboxes | Powered by JetHome®