diff mbox series

PCI: cadence: Fix runtime atomic count underflow.

Message ID 20250207152343.37448-1-18255117159@163.com (mailing list archive)
State New
Delegated to: Krzysztof WilczyƄski
Headers show
Series PCI: cadence: Fix runtime atomic count underflow. | expand

Commit Message

Hans Zhang Feb. 7, 2025, 3:23 p.m. UTC
From: "Hans Zhang" <18255117159@163.com>

If the pci_host_probe fails to be executed and run one time
pm_runtime_put_sync. Run pm_runtime_put_sync or pm_runtime_put again in
cdns_plat_pcie_probe or j721e_pcie_probe. Finally, it will print log
"runtime PM usage count underflow!".

Signed-off-by: Hans Zhang <18255117159@163.com>
---
 drivers/pci/controller/cadence/pcie-cadence-host.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


base-commit: bb066fe812d6fb3a9d01c073d9f1e2fd5a63403b
diff mbox series

Patch

diff --git a/drivers/pci/controller/cadence/pcie-cadence-host.c b/drivers/pci/controller/cadence/pcie-cadence-host.c
index 8af95e9da7ce..fe0b8d76005e 100644
--- a/drivers/pci/controller/cadence/pcie-cadence-host.c
+++ b/drivers/pci/controller/cadence/pcie-cadence-host.c
@@ -576,8 +576,6 @@  int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
 
 	return 0;
 
- err_init:
-	pm_runtime_put_sync(dev);
-
+err_init:
 	return ret;
 }