Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: nand: mxc: set ECC algorithm explicitly

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

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Rafał Miłecki and committed by
Boris Brezillon
c1c7040e 050658c8

+1
+1
drivers/mtd/nand/mxc_nand.c
··· 1585 1585 this->ecc.mode = NAND_ECC_HW; 1586 1586 } else { 1587 1587 this->ecc.mode = NAND_ECC_SOFT; 1588 + this->ecc.algo = NAND_ECC_HAMMING; 1588 1589 } 1589 1590 1590 1591 /* NAND bus width determines access functions used by upper layer */