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

CRIS v32: nand: 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>
Acked-by: Mikael Starvik <starvik@axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Rafał Miłecki and committed by
Boris Brezillon
40438a1e d5f304ac

+2
+1
arch/cris/arch-v32/drivers/mach-a3/nandflash.c
··· 157 157 /* 20 us command delay time */ 158 158 this->chip_delay = 20; 159 159 this->ecc.mode = NAND_ECC_SOFT; 160 + this->ecc.algo = NAND_ECC_HAMMING; 160 161 161 162 /* Enable the following for a flash based bad block table */ 162 163 /* this->bbt_options = NAND_BBT_USE_FLASH; */
+1
arch/cris/arch-v32/drivers/mach-fs/nandflash.c
··· 148 148 /* 20 us command delay time */ 149 149 this->chip_delay = 20; 150 150 this->ecc.mode = NAND_ECC_SOFT; 151 + this->ecc.algo = NAND_ECC_HAMMING; 151 152 152 153 /* Enable the following for a flash based bad block table */ 153 154 /* this->bbt_options = NAND_BBT_USE_FLASH; */