Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Qiang Yu and committed by
Manivannan Sadhasivam
f227b246 cfdb41ad

+1
+1
drivers/bus/mhi/host/pci_generic.c
··· 1452 1452 struct mhi_pci_device *mhi_pdev = pci_get_drvdata(pdev); 1453 1453 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; 1454 1454 1455 + pm_runtime_forbid(&pdev->dev); 1455 1456 pci_disable_sriov(pdev); 1456 1457 1457 1458 if (pdev->is_physfn)