mtd: edit NAND-related comment

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:24 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c478d7e449508d924628b012e62dee6dddb6b9e9
Commit:     c478d7e449508d924628b012e62dee6dddb6b9e9
Parent:     003bc47922047e21ebfb19cb99317273b313f79d
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Jun 28 16:29:00 2011 -0700
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:14 2011 +0300

    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 at gmail.com>
    Signed-off-by: Artem Bityutskiy <dedekind1 at gmail.com>
---
 drivers/mtd/mtdchar.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index d592463..e197192 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,
 	 * to signal the caller that a bitflip has occured and has
 	 * been corrected by the ECC algorithm.
 	 *
-	 * Note: most NAND ECC algorithms do not calculate ECC
-	 * for the OOB area.
+	 * Note: currently the standard NAND function, nand_read_oob_std,
+	 * does not calculate ECC for the OOB area, so do not rely on
+	 * this behavior unless you have replaced it with your own.
 	 */
 	if (ret == -EUCLEAN || ret == -EBADMSG)
 		return 0;



More information about the linux-mtd-cvs mailing list