Signed-off-by: Sascha Hauer <[email protected]>
---
 drivers/mtd/partition.c | 1 +
 include/linux/mtd/mtd.h | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c
index 917122a844..1572038392 100644
--- a/drivers/mtd/partition.c
+++ b/drivers/mtd/partition.c
@@ -166,6 +166,7 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, 
off_t offset,
        part->oobavail = mtd->oobavail;
        part->bitflip_threshold = mtd->bitflip_threshold;
        part->ecclayout = mtd->ecclayout;
+       part->ecc_step_size = mtd->ecc_step_size;
        part->ecc_strength = mtd->ecc_strength;
        part->subpage_sft = mtd->subpage_sft;
        part->cdev.flags = flags;
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 75407a9790..710cba7a20 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -124,6 +124,9 @@ struct mtd_info {
        /* ecc layout structure pointer - read only ! */
        struct nand_ecclayout *ecclayout;
 
+       /* the ecc step size. */
+       unsigned int ecc_step_size;
+
        /* max number of correctible bit errors per ecc step */
        unsigned int ecc_strength;
 
-- 
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to