mtd: nand: set ECC algorithm to Hamming on fallback

This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
This commit is contained in:
Rafał Miłecki authored and Boris Brezillon committed 2016-05-05 23:52:04 +02:00
1 parent cc71538fab
commit e9d4faed71
1 file changed
+1
+1
View File
@@ -4337,6 +4337,7 @@ int nand_scan_tail(struct mtd_info *mtd)
pr_warn("%d byte HW ECC not possible on %d byte page size, fallback to SW ECC\n",
ecc->size, mtd->writesize);
ecc->mode = NAND_ECC_SOFT;
ecc->algo = NAND_ECC_HAMMING;
case NAND_ECC_SOFT:
ecc->calculate = nand_calculate_ecc;