[PATCH] PCI: cadence: Fixed cdns_pcie_host_link_setup return value.
From: Hans Zhang
Date: Thu Dec 19 2024 - 03:15:38 EST
If the PCIe link never came up, the enumeration process
should not be run.
Signed-off-by: Hans Zhang <18255117159@xxxxxxx>
---
drivers/pci/controller/cadence/pcie-cadence-host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/cadence/pcie-cadence-host.c b/drivers/pci/controller/cadence/pcie-cadence-host.c
index 8af95e9da7ce..3887b55c2160 100644
--- a/drivers/pci/controller/cadence/pcie-cadence-host.c
+++ b/drivers/pci/controller/cadence/pcie-cadence-host.c
@@ -517,7 +517,7 @@ int cdns_pcie_host_link_setup(struct cdns_pcie_rc *rc)
if (ret)
dev_dbg(dev, "PCIe link never came up\n");
- return 0;
+ return ret;
}
int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
--
2.17.1