summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-03-27 19:01:58 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-03-29 19:29:06 +0200
commit2b1b1b4ac716fd929a2d221bd4ade62263bed915 (patch)
tree6aeb6b78909ca2bac8a3826a1d1a4d8b1480805b /drivers/mtd/chips
parent3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (diff)
downloadblackbird-obmc-linux-2b1b1b4ac716fd929a2d221bd4ade62263bed915.tar.gz
blackbird-obmc-linux-2b1b1b4ac716fd929a2d221bd4ade62263bed915.zip
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: f88fc122cc34 ("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>
Diffstat (limited to 'drivers/mtd/chips')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud