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 v2 1/2] bus: mhi: pci_generic: Prevent MHI from aborting system suspend
Date: Fri, 13 Nov 2026 12:17:59 -0300 [thread overview]
Message-ID: <7ce7895da501c3204416b69b0049ff488904f6a5.1794582108.git.len.brown@intel.com> (raw)
In-Reply-To: <20261113151940.2922539-1-lenb@kernel.org>
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
... PM: pci_pm_suspend(): mhi_pci_suspend [mhi_pci_generic] returns -16
... PM: dpm_run_callback(): pci_pm_suspend returns -16
... PM: pci_pm_suspend returned -16 after 15145 usecs
... PM: failed to suspend async: error -16
Prevent MHI from spreading this device-specific failure
to the rest of the system. I.e. "Why is a modem that I don't use
preventing me from suspending my laptop?"
This change does not comprehend the internal root cause of the
mhi failure, which should be found and fixed.
There is also a risk that ignoring the MHI error and continuing
to put the device into PCI D3 will leave it in an error state.
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 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index 7193a384cca4..343d1046a25e 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -1727,7 +1727,12 @@ 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);
+
+ /* Ignore errors (e.g. -EBUSY); a failed modem suspend must not abort system suspend */
+ mhi_pci_runtime_suspend(dev);
+
+ /* Must return 0 to allow system suspend to continue */
+ return 0;
}
static int __maybe_unused mhi_pci_resume(struct device *dev)
--
2.45.2
next prev parent reply other threads:[~2026-11-13 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 15:17 [PATCH 0/2] bus: mhi: Address MHI system suspend abort Len Brown
2026-11-13 15:17 ` Len Brown [this message]
2026-11-13 15:18 ` [RFC 2/2] bus: mhi: host: Add diagnostic print for -EBUSY in mhi_pm_suspend() Len Brown
2026-11-13 15:21 ` [PATCH v2 1/2] bus: mhi: pci_generic: Prevent MHI from aborting system suspend 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=7ce7895da501c3204416b69b0049ff488904f6a5.1794582108.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®