public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Edward J. Lee" <noshel@idis.co.kr>
Cc: linux-mtd@lists.infradead.org
Subject: Re: A question on ECC
Date: Mon, 14 Apr 2003 13:25:02 +0200	[thread overview]
Message-ID: <200304141325.02451.tglx@linutronix.de> (raw)
In-Reply-To: <3E9AF275.4000905@idis.co.kr>

On Monday 14 April 2003 19:40, Edward J. Lee wrote:
>
> this->eccmode is indeed set to NAND_ECC_SOFT.
> I guess my case is kind of 'extra-tricky'. I just found out another
> weird thing,
> that the warning messages complaining '...without ECC...' do NOT appear
> when I'm 'writing' on the chip. Strange, eh. :'(

Can you put some debug output YAFFS ?

--- yaffs_mtdif.c	8 Apr 2003 19:53:44 -0000	1.9
+++ yaffs_mtdif.c	14 Apr 2003 10:23:39 -0000
@@ -90,10 +90,12 @@
 		if(dev->useNANDECC)
 		{   // Careful, this call adds 2 ints to the end of the spare data.  
Calling function should
             // allocate enough memory for spare, i.e. 
[YAFFS_BYTES_PER_SPARE+2*sizeof(int)].
+	    	printk (KERN_DEBUG "YAFFS ReadChunk with real ECC_INFO\n");
     		retval = 
mtd->read_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_oobinfo);            
 		}
 		else
 		{
+		    	printk (KERN_DEBUG "YAFFS ReadChunk with dummy ECC_INFO\n");
 			retval = 
mtd->read_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_noeccinfo);
 		}
 	}


-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

  parent reply	other threads:[~2003-04-14 10:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14  0:18 A question on ECC Edward Lee \(이장원\)
2003-04-14  2:01 ` Earl Manning
2003-04-14  5:13   ` Edward Lee (???)
2003-04-14  7:54     ` Thomas Gleixner
2003-04-14 17:40       ` Edward J. Lee
2003-04-14 10:03         ` Gerhard Uttenthaler
2003-04-14 11:17           ` Thomas Gleixner
2003-04-14 11:25         ` Thomas Gleixner [this message]
2003-04-18  9:47           ` Edward J. Lee
2003-04-18  8:49             ` Thomas Gleixner
2003-04-19  4:14               ` Edward Lee (???)
2003-04-19  7:31                 ` Thomas Gleixner
2003-04-14 14:06         ` Earl Manning
2003-04-14 15:26           ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304141325.02451.tglx@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=noshel@idis.co.kr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox