Re: [PATCH] bus: mhi: host: pci_generic: Fix runtime PM imbalance for no_m3 devices
From: Manivannan Sadhasivam
Date: Sat Sep 26 2026 - 06:19:10 EST
On Fri, 07 Aug 2026 14:33:53 +0000, Alexandra Lu wrote:
> mhi_pci_probe() drops the runtime PM reference taken by local_pci_probe()
> only when the device supports both PME from D3hot and M3, but
> mhi_pci_remove() re-takes it based on PME capability alone, without
> checking no_m3.
>
> For a device that is PME capable and has no_m3 set, probe therefore never
> drops the reference while remove takes an extra one, leaving the runtime
> PM usage count one higher after every bind/unbind cycle. That is benign
> for the device being removed, since the PCI core resumes it to D0 on
> unbind regardless, but the struct device outlives the binding, so the
> count accumulates across repeated cycles and can end up preventing
> runtime suspend altogether.
>
> [...]
Applied, thanks!
[1/1] bus: mhi: host: pci_generic: Fix runtime PM imbalance for no_m3 devices
commit: 95601e9948b42f82600ff2d9e0c2f699a067d561
Best regards,
--
மணிவண்ணன் சதாசிவம்