summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-09-20 18:35:08 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-21 09:19:07 +0300
commit167a8d52509a0f7d6728a79e2588b800e866c147 (patch)
tree7ae622e68cbed19680cd3954259f1616d3d868bd /include
parentd57f40544a41fdfe90fd863b6865138c5a82f1cc (diff)
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 <matthieu.castet@parrot.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions