linux-brain/drivers/mtd/nand/brcmnand
Albert Hsieh e88872ef99 mtd: nand: brcmnand: Zero bitflip is not an error
[ Upstream commit e44b9a9c13 ]

A negative return value of brcmstb_nand_verify_erased_page() indicates a
real bitflip error of an erased page, and other return values (>= 0) show
the corrected bitflip number. Zero return value means no bitflip, but the
current driver code treats it as an error, and eventually leads to
falsely reported ECC error.

Fixes: 02b88eea9f ("mtd: brcmnand: Add check for erased page bitflip")
Signed-off-by: Albert Hsieh <wen.hsieh@broadcom.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-03 10:23:21 +01:00
..
Makefile mtd: brcmnand: Add support for the BCM6368 2015-12-09 18:28:42 -08:00
bcm6368_nand.c mtd: brcmnand: defer to devm_ioremap_resource() for error checking 2015-12-10 13:08:08 -08:00
bcm63138_nand.c mtd: brcmnand: refactor bcm63138 SoC layering 2015-09-30 13:07:01 -07:00
brcmnand.c mtd: nand: brcmnand: Zero bitflip is not an error 2018-03-03 10:23:21 +01:00
brcmnand.h mtd: brcmnand: iProc big endian and ONFI support 2016-09-23 09:35:16 +02:00
brcmstb_nand.c
iproc_nand.c mtd: brcmnand: iProc big endian and ONFI support 2016-09-23 09:35:16 +02:00