mtd: flash drivers set ecc strength
[deliverable/linux.git] / drivers / mtd / nand / jz4740_nand.c
index cc50e35cdc3d664f6d6ff20b25eeac65399ff2e0..e4147e8acb7c560f2a8c3fdae68bf1027266fdba 100644 (file)
@@ -332,6 +332,11 @@ static int __devinit jz_nand_probe(struct platform_device *pdev)
        chip->ecc.mode          = NAND_ECC_HW_OOB_FIRST;
        chip->ecc.size          = 512;
        chip->ecc.bytes         = 9;
+       chip->ecc.strength      = 2;
+       /*
+        * FIXME: ecc_strength value of 2 bits per 512 bytes of data is a
+        * conservative guess, given 9 ecc bytes and reed-solomon alg.
+        */
 
        if (pdata)
                chip->ecc.layout = pdata->ecc_layout;
This page took 0.024556 seconds and 5 git commands to generate.