[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <jry5tvtjxalyuivb7fo3bzgmrgzqrppuumadiwllwiq53zig2m@pndd4pjdtd5v>
Date: Thu, 18 Dec 2025 13:14:51 +0530
From: Manivannan Sadhasivam <mani@...nel.org>
To: Andrea della Porta <andrea.porta@...e.com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, mbrugger@...e.com, guillaume.gardet@....com, tiwai@...e.com,
Lizhi Hou <lizhi.hou@....com>, Rob Herring <robh@...nel.org>
Subject: Re: [PATCH v4] PCI: of: Drop error message on missing of_root node
On Mon, Nov 10, 2025 at 12:21:10PM +0100, Andrea della Porta wrote:
> 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@...e.com>
Acked-by: Manivannan Sadhasivam <mani@...nel.org>
- Mani
> ---
> CHANGES in V4:
> - dropped {} from the single line conditional body
>
> V3: https://lore.kernel.org/all/20251110105415.9584-1-andrea.porta@suse.com/
> ---
> drivers/pci/of.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pci/of.c b/drivers/pci/of.c
> index 3579265f1198..c222944eec40 100644
> --- a/drivers/pci/of.c
> +++ b/drivers/pci/of.c
> @@ -774,10 +774,8 @@ 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");
> + if (!of_root)
> return;
> - }
>
> name = kasprintf(GFP_KERNEL, "pci@%x,%x", pci_domain_nr(bridge->bus),
> bridge->bus->number);
> --
> 2.35.3
>
--
மணிவண்ணன் சதாசிவம்
Powered by blists - more mailing lists