mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manivannan Sadhasivam via B4 Relay <devnull+manivannan.sadhasivam.oss.qualcomm.com@kernel.org>
To: Manivannan Sadhasivam <mani@kernel.org>,
	 Jeff Hugo <jeff.hugo@oss.qualcomm.com>,
	 Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	Abel Vesa <abel.vesa@oss.qualcomm.com>,
	 Len Brown <len.brown@intel.com>,
	 Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>,
	 stable@vger.kernel.org
Subject: [PATCH 0/2] bus: mhi: host: Do not abort system suspend when the MHI device is busy
Date: Wed, 02 Dec 2026 09:43:55 +0100	[thread overview]
Message-ID: <20261202-mhi-suspend-fix-v1-0-451bdce5733c@oss.qualcomm.com> (raw)

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,
--  
மணிவண்ணன் சதாசிவம்



             reply	other threads:[~2026-12-02  8:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  8:43 Manivannan Sadhasivam via B4 Relay [this message]
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

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=20261202-mhi-suspend-fix-v1-0-451bdce5733c@oss.qualcomm.com \
    --to=devnull+manivannan.sadhasivam.oss.qualcomm.com@kernel.org \
    --cc=abel.vesa@oss.qualcomm.com \
    --cc=jeff.hugo@oss.qualcomm.com \
    --cc=len.brown@intel.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@oss.qualcomm.com \
    --cc=mhi@lists.linux.dev \
    --cc=stable@vger.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®