Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9d4faed authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Boris Brezillon
Browse files

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: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent cc71538f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;