public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com>,
	linux-mtd@lists.infradead.org
Subject: Re: A question on ECC
Date: Mon, 14 Apr 2003 13:17:28 +0200	[thread overview]
Message-ID: <200304141317.28634.tglx@linutronix.de> (raw)
In-Reply-To: <3E9A876E.8090503@ems-wuensche.com>

On Monday 14 April 2003 12:03, Gerhard Uttenthaler wrote:

> Which eccmode is used seems to be set from the calling function of
> nand_read_ecc. I found:
TRUE
> in nandwrite.c:
> struct nand_oobinfo jffs2_oobinfo = {
> 	useecc: 1,
> 	eccpos:	{ 0, 1, 2, 3, 6, 7}
> };
> Here useecc is set to 1, which is found in nand.h:
> #define NAND_ECC_SOFT	1
CRAP. 
ECC_TYPE (SOFT OR HARD) is set in the board specific driver and nowhere else.

Read: http://www.linux-mtd.infradead.org/tech/nand.html

useecc is given by the calling program (filesystem or userspace utility) to 
tell the nand driver to USE ECC. eccpos is given to tell te nand driver
WHERE to put / get ECC in oobarea 
This was made to have support for different filesystems on one NAND chip. eg. 
JFFS2 and YAFFS.

>
> I found this while studying nftlmount.c. In function find_boot_record
> there might be a bug.
NTFL does _NOT_ use nand.c functions at all !!!!!!
DO NOT MIXUP STUFF HERE !

> Hope this all makes some sense and helps.
NO, see above

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

  reply	other threads:[~2003-04-14 10:17 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 [this message]
2003-04-14 11:25         ` Thomas Gleixner
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=200304141317.28634.tglx@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=uttenthaler@ems-wuensche.com \
    /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