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

mtd: nand: au1550nd: 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
c2ec6b30 e020cc05

+1
+1
drivers/mtd/nand/au1550nd.c
··· 459 459 /* 30 us command delay time */ 460 460 this->chip_delay = 30; 461 461 this->ecc.mode = NAND_ECC_SOFT; 462 + this->ecc.algo = NAND_ECC_HAMMING; 462 463 463 464 if (pd->devwidth) 464 465 this->options |= NAND_BUSWIDTH_16;