Skip to content

Commit 5aadac8

Browse files
qianyu-qcomZiyue Zhang
authored andcommitted
FROMLIST: 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 probe. Without this, the device remains in runtime PM allowed state after driver removal. Link: https://lore.kernel.org/all/20260303-b4-async_power_on-v2-2-d3db81eb457d@oss.qualcomm.com/ Fixes: 855a70c ("bus: mhi: Add MHI PCI support for WWAN modems") Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
1 parent 517de2c commit 5aadac8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/bus/mhi/host/pci_generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,7 @@ static void mhi_pci_remove(struct pci_dev *pdev)
14461446
mhi_soc_reset(mhi_cntrl);
14471447

14481448
mhi_unregister_controller(mhi_cntrl);
1449+
pm_runtime_forbid(&pdev->dev);
14491450
}
14501451

14511452
static void mhi_pci_shutdown(struct pci_dev *pdev)

0 commit comments

Comments
 (0)