Print the detected ECC strength and size from nand_get_flash_type().

Signed-off-by: Hans de Goede <[email protected]>
---
 drivers/mtd/nand/nand_base.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index f3fefbf..e2e2690 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -4433,9 +4433,10 @@ ident_done:
                pr_info("%s %s\n", nand_manuf_ids[maf_idx].name,
                                type->name);
 
-       pr_info("%d MiB, %s, erase size: %d KiB, page size: %d, OOB size: %d\n",
+       pr_info("%d MiB, %s, erase size: %d KiB, page size: %d, OOB size: %d, 
ECC strength %d size %d\n",
                (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
-               mtd->erasesize >> 10, mtd->writesize, mtd->oobsize);
+               mtd->erasesize >> 10, mtd->writesize, mtd->oobsize,
+               chip->ecc_strength_ds, chip->ecc_step_ds);
        return type;
 }
 
-- 
2.4.3

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to