mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Zhang <hans.zhang@cixtech.com>
To: Andrea della Porta <andrea.porta@suse.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	mbrugger@suse.com, guillaume.gardet@arm.com, tiwai@suse.com,
	Lizhi Hou <lizhi.hou@amd.com>, Rob Herring <robh@kernel.org>
Subject: Re: [PATCH v3] PCI: of: Drop error message on missing of_root node
Date: Mon, 10 Nov 2025 19:01:21 +0800	[thread overview]
Message-ID: <cfd99dc6-24e3-4b4d-97cc-12505f03d2c3@cixtech.com> (raw)
In-Reply-To: <20251110105415.9584-1-andrea.porta@suse.com>



On 11/10/2025 6:54 PM, Andrea della Porta wrote:
> EXTERNAL EMAIL
> 
> When CONFIG_PCI_DYNAMIC_OF_NODES is enabled, an error message
> is generated if no 'of_root' node is defined.
> 
> On DT-based systems, this cannot happen as a root DT node is
> always present.
> On ACPI-based systems that declare an empty root DT node (e.g.
> x86 with CONFIG_OF_EARLY_FLATTREE=y), this also won't happen.
> On platforms where ACPI is mutually exclusive to DT (e.g. ARM)
> the error will be caught (and possibly shown) by drivers that
> rely on the root node.
> 
> Drop the error message altogether.
> 
> Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
> ---
> Changes in V3:
> - Dropped the error message
> - Changed the commit subject
> 
> V2: https://lore.kernel.org/all/955bc7a9b78678fad4b705c428e8b45aeb0cbf3c.1762367117.git.andrea.porta@suse.com/
> ---
>   drivers/pci/of.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/of.c b/drivers/pci/of.c
> index 3579265f1198..71899b385f7c 100644
> --- a/drivers/pci/of.c
> +++ b/drivers/pci/of.c
> @@ -775,7 +775,6 @@ void of_pci_make_host_bridge_node(struct pci_host_bridge *bridge)
> 
>          /* Check if there is a DT root node to attach the created node */
>          if (!of_root) {
> -               pr_err("of_root node is NULL, cannot create PCI host bridge node\n");
>                  return;
>          }
Hi,

Can {} also be deleted?

Best regards,
Hans

> 
> --
> 2.35.3
> 
> 


      reply	other threads:[~2025-11-10 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-10 10:54 Andrea della Porta
2025-11-10 11:01 ` Hans Zhang [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=cfd99dc6-24e3-4b4d-97cc-12505f03d2c3@cixtech.com \
    --to=hans.zhang@cixtech.com \
    --cc=andrea.porta@suse.com \
    --cc=bhelgaas@google.com \
    --cc=guillaume.gardet@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lizhi.hou@amd.com \
    --cc=mbrugger@suse.com \
    --cc=robh@kernel.org \
    --cc=tiwai@suse.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®