mtd: nand: ignore ECC errors for simple BBM scans
authorBrian Norris <computersforpeace@gmail.com>
Tue, 28 Jun 2011 23:28:58 +0000 (16:28 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:14 +0000 (15:02 +0300)
commit903cd06cd6ece7f9050a3ad5b03e0b76be2882ff
treea538b351316987ddcef8dd28fb31b9e1bbd7a910
parent51b11e3630672b7ce8793ecf13e5759656edf38a
mtd: nand: ignore ECC errors for simple BBM scans

Now that nand_do_readoob() may return -EUCLEAN or -EBADMSG on ECC errors,
we need to handle the return value specially in some cases.

When scanning for simple bad block markers, reacting to an ECC error is
not very useful, as we assume that the relevant markers are still
non-0xFF for true bad blocks.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/nand/nand_bbt.c
This page took 0.024254 seconds and 5 git commands to generate.