]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: mhi: host: pci_generic: Add pm_runtime_forbid() in remove callback
authorQiang Yu <qiang.yu@oss.qualcomm.com>
Tue, 3 Mar 2026 09:02:14 +0000 (01:02 -0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 6 Mar 2026 07:40:41 +0000 (13:10 +0530)
commitf227b246307e0cf3091e13e7fbae3974aaf38eb9
tree4daf8da247292833bb1516ee6f5b0993cbf51c87
parentcfdb41adf1c2822ad1b1791d4d11093edb5582b6
bus: mhi: host: pci_generic: Add pm_runtime_forbid() in remove callback

Add pm_runtime_forbid() to balance the pm_runtime_allow() call made
during Mission Mode transition. Without this, the device remains in runtime
PM allowed state even after driver removal.

Fixes: 855a70c12021 ("bus: mhi: Add MHI PCI support for WWAN modems")
Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
[mani: moved pm_runtime_forbid() to the start of remove()]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260303-b4-async_power_on-v2-2-d3db81eb457d@oss.qualcomm.com
drivers/bus/mhi/host/pci_generic.c