[Skiboot] [PATCH] dts: Don't assert when we don't know the processor type

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Jan 14 04:32:00 AEDT 2017


Return an error instead

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---

Somebody should look into adding code for p9 DTS

 hw/dts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/dts.c b/hw/dts.c
index 902a3b4..dbbe35b 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -204,7 +204,7 @@ static int dts_read_core_temp(uint32_t pir, struct dts *dts)
 		rc = dts_read_core_temp_p8(pir, dts);
 		break;
 	default:
-		assert(false);
+		rc = OPAL_UNSUPPORTED;
 	}
 	return rc;
 }



More information about the Skiboot mailing list