[Skiboot] [PATCH 1/3] ibm, firmware-versions: add 'open-power' for backwards compat

Stewart Smith stewart at linux.ibm.com
Fri Apr 6 15:16:44 AEST 2018


From: Stewart Smith <stewart at linux.vnet.ibm.com>

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 core/flash.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/flash.c b/core/flash.c
index d526ef33a220..2652b8c36c9d 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -1,4 +1,4 @@
-/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -181,6 +181,12 @@ static void __flash_dt_add_fw_version(struct dt_node *fw_version, char* data)
 		prop++;
 
 		dt_add_property_string(fw_version, "version", prop);
+		/*
+		 * For backwards compatibility, we still add 'open-power'
+		 * FWTS up to and including 18.03 expects it, and maintaining
+		 * compatibility is harmless
+		 */
+		dt_add_property_string(fw_version, "open-power", prop);
 		return;
 	}
 
-- 
2.14.3



More information about the Skiboot mailing list