[Skiboot] [PATCH 2/2] lpc-mbox: Not existing is only an error on P9 and above

Stewart Smith stewart at linux.vnet.ibm.com
Fri Mar 10 16:56:59 AEDT 2017


Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 hw/lpc-mbox.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hw/lpc-mbox.c b/hw/lpc-mbox.c
index aaaa2b0c4f3a..fd107fbbda01 100644
--- a/hw/lpc-mbox.c
+++ b/hw/lpc-mbox.c
@@ -230,7 +230,11 @@ void mbox_init(void)
 	prlog(PR_DEBUG, "Attempting mbox init\n");
 	np = dt_find_compatible_node(dt_root, NULL, "mbox");
 	if (!np) {
-		prlog(PR_ERR, "No device tree entry\n");
+		/* Only an ERROR on P9 and above, otherwise just
+		 * a warning for someone doing development
+		 */
+		prlog((proc_gen <= proc_gen_p8) ? PR_DEBUG : PR_ERR,
+		      "No device tree entry\n");
 		return;
 	}
 
-- 
2.9.3



More information about the Skiboot mailing list