diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-09-20 18:35:08 -0700 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-21 09:19:07 +0300 |
commit | 167a8d52509a0f7d6728a79e2588b800e866c147 (patch) | |
tree | 7ae622e68cbed19680cd3954259f1616d3d868bd /firmware/emi62 | |
parent | d57f40544a41fdfe90fd863b6865138c5a82f1cc (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 'firmware/emi62')
0 files changed, 0 insertions, 0 deletions