From 72928ed32ab3684be74e4a3b90329dee7cfa6bbb Mon Sep 17 00:00:00 2001 From: Sam Mendoza-Jonas Date: Fri, 26 Feb 2016 10:39:55 +1100 Subject: Use 'Primary' instead of 'Current' for flash sides When queried libflash will return the 'first' flash side (ie. the one with the lowest TOC address), however we label this the 'Current' side which is incorrect if the machine has booted from the alternate side. A future fix will inlcude additional platform logic to determine which flash side is current; in the interim label the first flash side as 'Primary' instead of 'Current'. Signed-off-by: Sam Mendoza-Jonas --- discover/hostboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discover') diff --git a/discover/hostboot.c b/discover/hostboot.c index 9a27b0f..bc9a3ba 100644 --- a/discover/hostboot.c +++ b/discover/hostboot.c @@ -12,11 +12,11 @@ void hostboot_load_versions(struct system_info *info) { int n = 0; - n = flash_parse_version(info, &info->platform_current, true); + n = flash_parse_version(info, &info->platform_primary, true); if (n < 0) pb_log("Failed to read platform versions for current side\n"); else - info->n_current = n; + info->n_primary = n; n = flash_parse_version(info, &info->platform_other, false); if (n < 0) -- cgit v1.2.1