From: Len Brown <lenb@kernel.org>
To: rafael@kernel.org, Manivannan Sadhasivam <mani@kernel.org>,
Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: linux-pm@vger.kernel.org, mhi@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: [PATCH] bus: mhi: pci_generic: Fix erroneous system suspend abort
Date: Wed, 11 Nov 2026 14:23:26 -0300 [thread overview]
Message-ID: <b47282f1514a9012ac51d0915afb83782c3c0050.1794417398.git.len.brown@intel.com> (raw)
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
next reply other threads:[~2026-11-11 17:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 17:23 Len Brown [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b47282f1514a9012ac51d0915afb83782c3c0050.1794417398.git.len.brown@intel.com \
--to=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=mani@kernel.org \
--cc=mhi@lists.linux.dev \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®