[Skiboot] [PATCH 26/40] core/flash.c: load actual partition size
Stewart Smith
stewart at linux.vnet.ibm.com
Mon Oct 10 19:44:07 AEDT 2016
From: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
We are downloading 0x20000 bytes from PNOR for CAPP, but currently the
CAPP lid is only 40K.
This loads the actual partition size as opposed to the total partition
size.
Signed-off-by: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
core/flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/flash.c b/core/flash.c
index 2aa0f03..0424479 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -611,7 +611,7 @@ static int flash_load_resource(enum resource_id id, uint32_t subid,
goto out_free_ffs;
}
rc = ffs_part_info(ffs, part_num, NULL,
- &part_start, &part_size, NULL, &ecc);
+ &part_start, NULL, &part_size, &ecc);
if (rc) {
prerror("FLASH: Failed to get %s partition info\n", name);
goto out_free_ffs;
--
2.7.4
More information about the Skiboot
mailing list