[Skiboot] [PATCH 05/24] phb3/4: Silence a useless warning

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Jun 23 02:22:06 AEST 2017


PHB's don't have base location codes on non-FSP systems and it's
normal.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 hw/phb3.c | 2 +-
 hw/phb4.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/phb3.c b/hw/phb3.c
index bf043b3..0b4c3c3 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -4683,7 +4683,7 @@ static void phb3_create(struct dt_node *np)
 	p->phb.base_loc_code = dt_prop_get_def(dt_root,
 					       "ibm,io-base-loc-code", NULL);
 	if (!p->phb.base_loc_code)
-		PHBERR(p, "Base location code not found !\n");
+		PHBDBG(p, "Base location code not found !\n");
 
 	/* Priority order: NVRAM -> dt -> GEN3 */
 	p->max_link_speed = 3;
diff --git a/hw/phb4.c b/hw/phb4.c
index db0cf54..a2641b8 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -4074,7 +4074,7 @@ static void phb4_create(struct dt_node *np)
 	p->phb.base_loc_code = dt_prop_get_def(dt_root,
 					       "ibm,io-base-loc-code", NULL);
 	if (!p->phb.base_loc_code)
-		PHBERR(p, "Base location code not found !\n");
+		PHBDBG(p, "Base location code not found !\n");
 
 	/*
 	 * Grab CEC IO VPD load info from the root of the device-tree,
-- 
2.9.4



More information about the Skiboot mailing list