* [PATCH] PCI: imx6: Use dev_err_probe() when parsing Root Port nodes
@ 2026-11-23 12:41 Stefan Ghetu
2026-11-23 12:46 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Ghetu @ 2026-11-23 12:41 UTC (permalink / raw)
To: Richard Zhu, Lucas Stach, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Bjorn Helgaas
Cc: Rob Herring, Frank Li, Sascha Hauer, Pengutronix Kernel Team,
Fabio Estevam, linux-pci, linux-arm-kernel, imx, linux-kernel,
Stefan Ghetu
pci_host_common_parse_ports() returns -EPROBE_DEFER when the PERST#
GPIO of a Root Port node is provided by a GPIO controller that has not
probed yet, e.g. an I2C GPIO expander. imx_pcie_host_init() logs this
at error level on every probe attempt:
imx6q-pcie 4c300000.pcie: Failed to parse Root Port nodes: -517
Probe deferral is expected and not an error, but these messages flood
the kernel log during boot on boards like the i.MX95 19x19 EVK.
Use dev_err_probe() so that deferral is only recorded as the deferred
probe reason, while other errors are still reported.
Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
---
drivers/pci/controller/dwc/pci-imx6.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 865438ffde879..2a7f09630d14c 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -1395,10 +1395,9 @@ static int imx_pcie_host_init(struct dw_pcie_rp *pp)
if (bridge && list_empty(&bridge->ports)) {
/* Parse Root Port nodes if present */
ret = pci_host_common_parse_ports(dev, bridge);
- if (ret) {
- dev_err(dev, "Failed to parse Root Port nodes: %d\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(dev, ret,
+ "Failed to parse Root Port nodes\n");
/* Fall back to legacy binding for DT backwards compatibility */
if (!imx_pcie_perst_found(bridge)) {
base-commit: 7bf2db752515a9020b310984ae3bce1089cfdf20
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-23 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 12:41 [PATCH] PCI: imx6: Use dev_err_probe() when parsing Root Port nodes Stefan Ghetu
2026-11-23 12:46 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox