mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] bus: mhi: pci_generic: Fix erroneous system suspend abort
@ 2026-11-11 17:23 Len Brown
  2026-11-12  8:22 ` Loic Poulain
  0 siblings, 1 reply; 6+ messages in thread
From: Len Brown @ 2026-11-11 17:23 UTC (permalink / raw)
  To: rafael, Manivannan Sadhasivam, Loic Poulain; +Cc: linux-pm, mhi, linux-kernel

From: Len Brown <len.brown@intel.com>

mhi sometimes aborts system suspend on the thinkpad T16 gen3:

mhi-pci-generic 0000:08:00.0: failed to suspend device: -16
mhi-pci-generic 0000:08:00.0: PM: pci_pm_suspend(): mhi_pci_suspend [mhi_pci_generic] returns -16
mhi-pci-generic 0000:08:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -16
mhi-pci-generic 0000:08:00.0: PM: pci_pm_suspend returned -16 after 15145 usecs
mhi-pci-generic 0000:08:00.0: PM: failed to suspend async: error -16

When a driver returns -EBUSY for its runtime suspend method,
that means "try again later".

But when a driver returns anything but 0 from its system-suspend
method, that means "abort system suspend".

Always return 0 from mhi_pci_suspend().

Fixes: d3800c1dce24 ("bus: mhi: pci_generic: Add support for runtime PM")
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/bus/mhi/host/pci_generic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index 7193a384cca4..b036fa6e06c4 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -1727,7 +1727,8 @@ static int __maybe_unused mhi_pci_runtime_resume(struct device *dev)
 static int  __maybe_unused mhi_pci_suspend(struct device *dev)
 {
 	pm_runtime_disable(dev);
-	return mhi_pci_runtime_suspend(dev);
+	mhi_pci_runtime_suspend(dev);
+	return 0;
 }
 
 static int __maybe_unused mhi_pci_resume(struct device *dev)
-- 
2.45.2


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

end of thread, other threads:[~2026-11-13 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 17:23 [PATCH] bus: mhi: pci_generic: Fix erroneous system suspend abort Len Brown
2026-11-12  8:22 ` Loic Poulain
2026-11-13 12:42   ` Len Brown
2026-11-13 13:20     ` Loic Poulain
2026-11-13 14:09       ` Len Brown
2026-11-13 15:06         ` 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®