Skip to contentSkip to conversation

powerpc/pseries: Quieten ibm,pcie-link-speed-stats warning

PATCH In review Anton Blanchard 2 participants 2 messages Oct 31, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Quieten ibm,pcie-link-speed-stats warning

The ibm,pcie-link-speed-stats isn't mandatory, so we shouldn't print a high priority error message when missing. One example where we see this is QEMU.

Reduce it to pr_info.

---
 arch/powerpc/platforms/pseries/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/pci.c +1 -1
index 67e4859..57dd7a0 100644
@@ -134,7 +134,7 @@ int pseries_root_bridge_prepare(struct pci_host_bridge *bridge)
 	of_node_put(pdn);
 
 	if (rc) {
-		pr_err("no ibm,pcie-link-speed-stats property\n");
+		pr_info("no ibm,pcie-link-speed-stats property\n");
 		return 0;
 	}
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 5 lines · Anton Blanchard

The ibm,pcie-link-speed-stats isn't mandatory, so we shouldn't print a high priority error message when missing. One example where we see this is QEMU.

Reduce it to pr_info.

I would reduce it even further to pr_dbg.

Cheers,
Ben.

Quoted 18 lines
---
 arch/powerpc/platforms/pseries/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/pci.c +1 -1
index 67e4859..57dd7a0 100644
@@ -134,7 +134,7 @@ int pseries_root_bridge_prepare(struct pci_host_bridge *bridge)
 	of_node_put(pdn);
 
 	if (rc) {
-		pr_err("no ibm,pcie-link-speed-stats property\n");
+		pr_info("no ibm,pcie-link-speed-stats property\n");
 		return 0;
 	}