Skip to content
Commit e44b9a9c authored by Albert Hsieh's avatar Albert Hsieh Committed by Richard Weinberger
Browse files

mtd: nand: brcmnand: Zero bitflip is not an error



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: 02b88eea ("mtd: brcmnand: Add check for erased page bitflip")
Signed-off-by: default avatarAlbert Hsieh <wen.hsieh@broadcom.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent fdf2e821
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment