From: Brian Norris Date: Wed, 21 Sep 2011 01:35:08 +0000 (-0700) Subject: mtd: nand: report ECC errors properly when reading BBT X-Git-Tag: v3.2-rc1~14^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=167a8d52509a0f7d6728a79e2588b800e866c147;p=pandora-kernel.git mtd: nand: report ECC errors properly when reading BBT Instead of just printing a warning when encountering ECC errors, we should return a proper error status and print a more informative warning. Later, we will handle these error messages in the upper layers of the BBT scan. Note that this patch makes our check for ECC error codes a little bit more restrictive, leaving all unrecognized errors to the generic "else" clause. This shouldn't cause problems and could even be a benefit. This code is based on some findings reported by Matthieu Castet. Reported-by: Matthieu CASTET Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed