less aggressive bad block marking patch (was RE: [Yaffs] Re: bit error rates)

Michael Schmidt michael at embeddedArm.com
Fri Feb 10 23:39:59 GMT 2006


I would like to submit that the patch below might be appropriate for those 
who aren't paranoid about ECC errors on read-back contributing to a greater 
chance of future data loss in that block.

Charles, is there anything I've missed?

--MichaeL

--- yaffs_tagscompat-old.c 2006-02-10 16:37:01.000000000 -0700
+++ yaffs_tagscompat.c 2006-02-10 16:37:04.000000000 -0700
@@ -335,6 +335,7 @@

 static void yaffs_HandleReadDataError(yaffs_Device * dev, int chunkInNAND)
 {
+#ifdef PARANOID_ABOUT_READ_ERRORS
  int blockInNAND = chunkInNAND / dev->nChunksPerBlock;

  /* Mark the block for retirement */
@@ -347,6 +348,7 @@
   * then retire the block
   * NB recursion
   */
+#endif
 }

 #ifdef NOTYET




More information about the yaffs mailing list