mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] PCI: cadence: Fixed cdns_pcie_host_link_setup return value.
@ 2024-12-19  8:14 Hans Zhang
  2024-12-19  8:33 ` Siddharth Vadapalli
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Zhang @ 2024-12-19  8:14 UTC (permalink / raw)
  To: lpieralisi
  Cc: kw, manivannan.sadhasivam, robh, bhelgaas, s-vadapalli,
	thomas.richard, linux-pci, linux-kernel, rockswang7, Hans Zhang

If the PCIe link never came up, the enumeration process
should not be run.

Signed-off-by: Hans Zhang <18255117159@163.com>
---
 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


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

end of thread, other threads:[~2024-12-21 14:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19  8:14 [PATCH] PCI: cadence: Fixed cdns_pcie_host_link_setup return value Hans Zhang
2024-12-19  8:33 ` Siddharth Vadapalli
2024-12-19  8:49   ` Hans Zhang
2024-12-19  8:59     ` Siddharth Vadapalli
     [not found]       ` <f2c8be62-7ff6-f0d0-f34a-ddb6915df0a4@163.com>
2024-12-19  9:49         ` Manivannan Sadhasivam
2024-12-19 10:29           ` Hans Zhang
2024-12-19 11:20             ` Manivannan Sadhasivam
2024-12-19 11:46               ` Hans Zhang
2024-12-19 13:35                 ` Manivannan Sadhasivam
2024-12-20  7:27                   ` Hans Zhang
2024-12-20 12:32                     ` Manivannan Sadhasivam
2024-12-21 14:47                       ` Hans Zhang
2024-12-19 10:04       ` Hans Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®