linux_dsm_epyc7002/drivers/mtd/nand/atmel
Boris Brezillon 2b1b1b4ac7 mtd: nand: atmel: Fix get_sectorsize() function
get_sectorsize() was not using the appropriate macro to extract the
ECC sector size from the config cache, which led to buggy ECC when
using 1024 byte sectors.

Fixes: f88fc122cc ("mtd: nand: Cleanup/rework the atmel_nand driver")
Cc: <stable@vger.kernel.org>
Reported-by: Olivier Schonken <olivier.schonken@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Olivier Schonken <olivier.schonken@gmail.com>
2018-03-29 19:29:06 +02:00
..
Makefile mtd: nand: Cleanup/rework the atmel_nand driver 2017-04-25 14:18:29 +02:00
nand-controller.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
pmecc.c mtd: nand: atmel: Fix get_sectorsize() function 2018-03-29 19:29:06 +02:00
pmecc.h mtd: nand: atmel: Avoid ECC errors when leaving backup mode 2017-10-07 11:28:05 +02:00