public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Juergen Beisert <jbeisert@eurodsn.de>
To: linux-mtd@lists.infradead.org
Subject: NAND-Flash ECC data not used
Date: Tue, 8 Jul 2003 10:01:10 +0200	[thread overview]
Message-ID: <200307081001.10555.jbeisert@eurodsn.de> (raw)

Hello all,

I have tried to use a 16MiB NAND flash in my application. It seems to work, 
but it also seem that the driver is not using the ECC data. I have derived my 
small driver from the spia.c source and have added the line

this->eccmode=NAND_ECC_SOFT;

before calling nand_scan(). nand_scan() inserts the ECC check routines 
correctly in the structure. But later, if the jffs2 calls the driver to read 
data from flash, it calls nand_read_ecc() with parameter oobsel = 0. So the 
line 

int	eccmode = oobsel ? this->eccmode : NAND_ECC_NONE;

in nand_read_ecc() switches back to NONE ecc mode while reading.

Any ideas what's going wrong?

Juergen Beisert

             reply	other threads:[~2003-07-08  8:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08  8:01 Juergen Beisert [this message]
2003-07-08 10:42 ` NAND-Flash ECC data not used Thomas Gleixner
2003-07-08 12:05   ` Juergen Beisert
2003-07-08 16:11     ` Thomas Gleixner
2003-07-09 14:43       ` Juergen Beisert

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=200307081001.10555.jbeisert@eurodsn.de \
    --to=jbeisert@eurodsn.de \
    --cc=linux-mtd@lists.infradead.org \
    /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