From: Hans Zhang <18255117159@163.com>
To: lpieralisi@kernel.org
Cc: kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org,
bhelgaas@google.com, s-vadapalli@ti.com,
thomas.richard@bootlin.com, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org, rockswang7@gmail.com,
Hans Zhang <18255117159@163.com>
Subject: [PATCH] PCI: cadence: Fixed cdns_pcie_host_link_setup return value.
Date: Thu, 19 Dec 2024 03:14:52 -0500 [thread overview]
Message-ID: <20241219081452.32035-1-18255117159@163.com> (raw)
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
next reply other threads:[~2024-12-19 8:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 8:14 Hans Zhang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241219081452.32035-1-18255117159@163.com \
--to=18255117159@163.com \
--cc=bhelgaas@google.com \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
--cc=rockswang7@gmail.com \
--cc=s-vadapalli@ti.com \
--cc=thomas.richard@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®