All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Stefan Ghetu <stefan.ghetu@nxp.com>
Cc: "Richard Zhu" <hongxing.zhu@nxp.com>,
	"Lucas Stach" <l.stach@pengutronix.de>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Rob Herring" <robh@kernel.org>, "Frank Li" <Frank.Li@nxp.com>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Fabio Estevam" <festevam@gmail.com>,
	linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	imx@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: imx6: Use dev_err_probe() when parsing Root Port nodes
Date: Mon, 23 Nov 2026 10:08:29 -0600	[thread overview]
Message-ID: <awRk_Q6ygEzDCFhm@SMW015318> (raw)
In-Reply-To: <20261123124110.563397-1-stefan.ghetu@nxp.com>

On Mon, Nov 23, 2026 at 02:41:10PM +0200, Stefan Ghetu wrote:
> 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>
> ---

Reviewed-by: Frank Li <Frank.Li@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
>
>

      parent reply	other threads:[~2026-11-23 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2026-11-23 16:08 ` Frank Li [this message]

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=awRk_Q6ygEzDCFhm@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=bhelgaas@google.com \
    --cc=festevam@gmail.com \
    --cc=hongxing.zhu@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=kwilczynski@kernel.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=stefan.ghetu@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.