提交 e9d4faed 编写于 作者: R Rafał Miłecki 提交者: Boris Brezillon

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: NRafał Miłecki <zajec5@gmail.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 cc71538f
...@@ -4337,6 +4337,7 @@ int nand_scan_tail(struct mtd_info *mtd) ...@@ -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", pr_warn("%d byte HW ECC not possible on %d byte page size, fallback to SW ECC\n",
ecc->size, mtd->writesize); ecc->size, mtd->writesize);
ecc->mode = NAND_ECC_SOFT; ecc->mode = NAND_ECC_SOFT;
ecc->algo = NAND_ECC_HAMMING;
case NAND_ECC_SOFT: case NAND_ECC_SOFT:
ecc->calculate = nand_calculate_ecc; ecc->calculate = nand_calculate_ecc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册