public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* NAND-Flash ECC data not used
@ 2003-07-08  8:01 Juergen Beisert
  2003-07-08 10:42 ` Thomas Gleixner
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Beisert @ 2003-07-08  8:01 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-09 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08  8:01 NAND-Flash ECC data not used Juergen Beisert
2003-07-08 10:42 ` Thomas Gleixner
2003-07-08 12:05   ` Juergen Beisert
2003-07-08 16:11     ` Thomas Gleixner
2003-07-09 14:43       ` Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox