]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: raw: Fix CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT behavior
authorGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 17 Apr 2019 09:22:05 +0000 (11:22 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 26 Apr 2019 22:58:20 +0000 (18:58 -0400)
commit86f5a9a8aba69f5521c61300619cba33d0c7ec6d
tree5e2ae4d05fc4363a5c9dee1aae4e7cc5c4b6abf3
parent5698f94dc7ce598c53919350e167a3c98c651bb7
mtd: nand: raw: Fix CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT behavior

The purpose of "mtd: nand: raw: allow to disable unneeded ECC layouts"
was to allow disabling the default ECC layouts if a driver is known to
provide its own ECC layout. However, this commit did the opposite and
disabled the default layout when it was _not_ selected.

It breaks all the NAND drivers not providing their own ECC layout this
patch fix this situation.

It was tested with the lpc32xx_nand_slc driver.

Fixes: 3466d9a678 ("mtd: nand: raw: allow to disable unneeded ECC layouts")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Eugen Hristev <eugen.hristev@microchip.com>
drivers/mtd/nand/raw/nand_base.c