aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-28 19:29:00 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:14 -0400
commitc478d7e449508d924628b012e62dee6dddb6b9e9 (patch)
tree98453d7d36ce71d21e522042d02f8a315b899a1c
parent003bc47922047e21ebfb19cb99317273b313f79d (diff)
mtd: edit NAND-related comment
This comment was unclear regarding which NAND functions do and do not support ECC on the spare area. This update should reflect the current status of the NAND system but can be updated if changes are made in the standard functions. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
-rw-r--r--drivers/mtd/mtdchar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index d5924635ead5..e197192331f9 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -482,8 +482,9 @@ static int mtd_do_readoob(struct mtd_info *mtd, uint64_t start,
482 * to signal the caller that a bitflip has occured and has 482 * to signal the caller that a bitflip has occured and has
483 * been corrected by the ECC algorithm. 483 * been corrected by the ECC algorithm.
484 * 484 *
485 * Note: most NAND ECC algorithms do not calculate ECC 485 * Note: currently the standard NAND function, nand_read_oob_std,
486 * for the OOB area. 486 * does not calculate ECC for the OOB area, so do not rely on
487 * this behavior unless you have replaced it with your own.
487 */ 488 */
488 if (ret == -EUCLEAN || ret == -EBADMSG) 489 if (ret == -EUCLEAN || ret == -EBADMSG)
489 return 0; 490 return 0;