Skip to content

Commit

Permalink
mtd: edit NAND-related comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Norris authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 003bc47 commit c478d7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c478d7e

Please sign in to comment.