mtd: nand/docg4: fix and improve read of factory bbt
authorMike Dunn <mikedunn@newsguy.com>
Fri, 7 Dec 2012 20:07:23 +0000 (12:07 -0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 12 Dec 2012 15:03:42 +0000 (17:03 +0200)
commit3c9c6d657a94f9b9aae498cb5951659cc67fd6ad
treef4969efdec7109ca179865f5839242a952141cf9
parent440b1d73b1b49bc08e1709ee6f6ef7ba2fc1f8ba
mtd: nand/docg4: fix and improve read of factory bbt

This patch does two things related to reading the factory badblock table during
initialization: (1) fix error where a non-zero return code from
docg4_read_page() is assumed to be an error (it was later changed to be
max_bitflips; thanks to Brian Norris for bringing this to my attention a while
back), and (2) if there is an error reading the factory bbt, it tries reading
another (redundant) factory bbt table.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/docg4.c
This page took 0.024869 seconds and 5 git commands to generate.