summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-06-23 13:22:14 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-23 13:38:42 +1000
commitdf307e0eecf119a26be838428311199f23e43c69 (patch)
tree057fd186de920a8b0962c244d1e49ca6659b1c02 /core
parent29d1e6f7810982d2c8f057ae35a39c2ac0cf484b (diff)
downloadtalos-skiboot-df307e0eecf119a26be838428311199f23e43c69.tar.gz
talos-skiboot-df307e0eecf119a26be838428311199f23e43c69.zip
libffs: init with ecc protection at blocklevel level
Passing a flag on libffs init will register all regions of the flash with ecc (as per the libffs partition information) as being ecc protected (or not). This saves the consumer needing to know or care about the presence of ecc. Reviewed-By: Alistair Popple <alistair@popple.id.au> Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/flash.c b/core/flash.c
index b9c739d0..f2c70e78 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -261,7 +261,7 @@ int flash_register(struct blocklevel_device *bl, bool is_system_flash)
return OPAL_RESOURCE;
}
- rc = ffs_init(0, flash->size, bl, &ffs);
+ rc = ffs_init(0, flash->size, bl, &ffs, 0);
if (rc) {
prlog(PR_WARNING, "FLASH: No ffs info; "
"using raw device only\n");
@@ -541,7 +541,7 @@ static int flash_load_resource(enum resource_id id, uint32_t subid,
goto out_unlock;
}
- rc = ffs_init(0, flash->size, flash->bl, &ffs);
+ rc = ffs_init(0, flash->size, flash->bl, &ffs, 0);
if (rc) {
prerror("FLASH: Can't open ffs handle\n");
goto out_unlock;
OpenPOWER on IntegriCloud