]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 16 Aug 2011 13:45:40 +0000 (16:45 +0300)
commitb8322c7f1806aff89c80854f04ac1cc1fa26673b
tree2bdce15220eecb435e56639516086d8e48fb3b37
parenta25dbe6fd7f1fb6e49222b9028f64b2218123a4f
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