linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] PCI: of: Downgrade error message on missing of_root node
@ 2025-11-05 18:33 Andrea della Porta
  2025-11-06  0:23 ` Bjorn Helgaas
  0 siblings, 1 reply; 10+ messages in thread
From: Andrea della Porta @ 2025-11-05 18:33 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci, linux-kernel, mbrugger,
	guillaume.gardet, tiwai
  Cc: Andrea della Porta

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, this is not a true error
because a DT is not used.

Downgrade the pr_err() to pr_info() and reword the message text
to be less context specific.

Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
---
CHANGES in V2:

* message text reworded to be less context specific (Bjorn)
---
 drivers/pci/of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/of.c b/drivers/pci/of.c
index 3579265f1198..872c36b195e3 100644
--- a/drivers/pci/of.c
+++ b/drivers/pci/of.c
@@ -775,7 +775,7 @@ 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");
+		pr_info("Missing DeviceTree, cannot create PCI host bridge node\n");
 		return;
 	}
 
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-11-07 11:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 18:33 [PATCH v2] PCI: of: Downgrade error message on missing of_root node Andrea della Porta
2025-11-06  0:23 ` Bjorn Helgaas
2025-11-06 11:04   ` Andrea della Porta
2025-11-06 12:18     ` Herve Codina
2025-11-06 15:21       ` Andrea della Porta
2025-11-06 17:27         ` Herve Codina
2025-11-06 17:50           ` Bjorn Helgaas
2025-11-07  9:32             ` Andrea della Porta
2025-11-07 11:58               ` Herve Codina
2025-11-07  9:26           ` Andrea della Porta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).