[PATCH] PCI/portdrv: remove redundant pm_runtime_dont_use_autosuspend() calls

From: Joshua Crofts

Date: Fri Nov 13 2026 - 15:29:36 EST


Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

Signed-off-by: Joshua Crofts <crofts@xxxxxxxxxx>
---
drivers/pci/pcie/portdrv.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c
index 32fc623dd41087c7f92552117499359fae4c73d8..3ce960b4ea25e4a2bec1c9991398bc445871085d 100644
--- a/drivers/pci/pcie/portdrv.c
+++ b/drivers/pci/pcie/portdrv.c
@@ -728,7 +728,6 @@ static void pcie_portdrv_remove(struct pci_dev *dev)
if (pci_bridge_d3_possible(dev)) {
pm_runtime_forbid(&dev->dev);
pm_runtime_get_noresume(&dev->dev);
- pm_runtime_dont_use_autosuspend(&dev->dev);
}

pcie_port_device_remove(dev);
@@ -741,7 +740,6 @@ static void pcie_portdrv_shutdown(struct pci_dev *dev)
if (pci_bridge_d3_possible(dev)) {
pm_runtime_forbid(&dev->dev);
pm_runtime_get_noresume(&dev->dev);
- pm_runtime_dont_use_autosuspend(&dev->dev);
}

pcie_port_device_remove(dev);

---
base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea
change-id: 20261113-pci-remove-dont-use-autosuspend-d30cbbea7888

Best regards,
--
Joshua Crofts <crofts@xxxxxxxxxx>