All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI/portdrv: remove redundant pm_runtime_dont_use_autosuspend() calls
@ 2026-11-13 15:14 Joshua Crofts
  2026-11-13 15:25 ` sashiko-bot
  2026-11-13 15:40 ` Joshua Crofts
  0 siblings, 2 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-11-13 15:14 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, linux-kernel, Joshua Crofts

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@kernel.org>
---
 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@kernel.org>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-13 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 15:14 [PATCH] PCI/portdrv: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
2026-11-13 15:25 ` sashiko-bot
2026-11-13 15:40 ` Joshua Crofts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.