[Skiboot] [RFC PATCH 2/2] core/flash: Force blocklevel to return only opal-api return codes

Cyril Bur cyril.bur at au1.ibm.com
Wed Jan 25 18:56:53 AEDT 2017


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 core/flash.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/flash.c b/core/flash.c
index 793401c9..4b8d7732 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -262,6 +262,9 @@ int flash_register(struct blocklevel_device *bl)
 	const char *name;
 	int rc;
 
+	/* Ensure we get sane error codes */
+	blocklevel_force_opal_codes(bl);
+
 	rc = blocklevel_get_info(bl, &name, &size, &block_size);
 	if (rc)
 		return rc;
-- 
2.11.0



More information about the Skiboot mailing list