|
@@ -3208,15 +3208,15 @@ int nand_scan_tail(struct mtd_info *mtd)
|
|
|
if (!chip->ecc.write_oob)
|
|
|
chip->ecc.write_oob = nand_write_oob_syndrome;
|
|
|
|
|
|
-#if 0
|
|
|
if (mtd->writesize >= chip->ecc.size) {
|
|
|
+#if 0
|
|
|
if (!chip->ecc.strength) {
|
|
|
pr_warn("Driver must set ecc.strength when using hardware ECC\n");
|
|
|
BUG();
|
|
|
}
|
|
|
+#endif
|
|
|
break;
|
|
|
}
|
|
|
-#endif
|
|
|
pr_warn("%d byte HW ECC not possible on "
|
|
|
"%d byte page size, fallback to SW ECC\n",
|
|
|
chip->ecc.size, mtd->writesize);
|