From: Thomas Gleixner <tglx@linutronix.de>
To: zheng wei <jeanwelly@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Can't enable ecc check in mtd.
Date: Sun, 07 Nov 2004 15:02:14 +0100 [thread overview]
Message-ID: <1099836135.2810.184.camel@thomas> (raw)
In-Reply-To: <c2bc1f4041107050978fc06ff@mail.gmail.com>
On Sun, 2004-11-07 at 21:09 +0800, zheng wei wrote:
> Hi, sir
> I cannot enable ecc check in mtd, the message in nand.c, func int
> nand_write_page (),
> printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not
> recommended\n");
>
> In mtd/nand.c,
> static int nand_write_page (struct mtd_info *mtd, struct nand_chip
> *this, int page, u_char *oob_buf, struct nand_oobinfo *oobsel)
> {
> int i, status;
> u_char ecc_code[6], *oob_data;
> int eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE;
> //??????? I have initialize the eccmode to NAND_ECC_HW3_512,
Maybe, but the variable which is checked is oobsel->useecc.
Read http://www.linux-mtd.infradead.org/tech/mtdnand/index.html
and http://www.linux-mtd.infradead.org/tech/mtdnand/x215.html
and http://www.linux-mtd.infradead.org/tech/mtdnand/c460.html
> I have enable the ecc check in mizi linux 2.4.18 for ARM2410.
Read http://www.linux-mtd.infradead.org/#kernelversions
tglx
prev parent reply other threads:[~2004-11-07 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-07 13:09 Can't enable ecc check in mtd zheng wei
2004-11-07 14:02 ` Thomas Gleixner [this message]
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=1099836135.2810.184.camel@thomas \
--to=tglx@linutronix.de \
--cc=jeanwelly@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.