[Skiboot] [PATCH v2 02/12] core/flash.c: load actual partition size
Claudio Carvalho
cclaudio at linux.vnet.ibm.com
Wed Sep 28 18:10:52 AEST 2016
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>
---
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;
--
1.9.1
More information about the Skiboot
mailing list