From: Mike Dunn Date: Fri, 7 Dec 2012 20:07:23 +0000 (-0800) Subject: mtd: nand/docg4: fix and improve read of factory bbt X-Git-Tag: v3.8-rc1~47^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c9c6d657a94f9b9aae498cb5951659cc67fd6ad;p=pandora-kernel.git 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 Acked-by: Robert Jarzmik Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed