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: f88fc122 ("mtd: nand: Cleanup/rework the atmel_nand driver") Cc: <stable@vger.kernel.org> Reported-by: NOlivier Schonken <olivier.schonken@gmail.com> Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: NRichard Weinberger <richard@nod.at> Acked-by: NNicolas Ferre <nicolas.ferre@microchip.com> Tested-by: NOlivier Schonken <olivier.schonken@gmail.com>
Showing
想要评论请 注册 或 登录