From: Troy Kisky <troy.kisky@boundarydevices.com>
To: David Brownell <david-b@pacbell.net>
Cc: "davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
"Narnakaje, Snehaprabha" <nsnehaprabha@ti.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"dwmw2@infradead.org" <dwmw2@infradead.org>,
"tglx@linutronix.de" <tglx@linutronix.de>
Subject: Re: [PATCH 2/2] NAND on DM355: Add 4-bit ECC support for large page NAND chips
Date: Thu, 07 May 2009 15:37:25 -0700 [thread overview]
Message-ID: <4A0362A5.3010101@boundarydevices.com> (raw)
In-Reply-To: <200905071011.06812.david-b@pacbell.net>
>>>> +static struct nand_ecclayout hwecc4_2048 __initconst = {
>>>> + .eccbytes = 10,
>>> Not ".eccbytes = 40"? This is 4 chunks, 10 ecc bytes each...
>> No, .eccbytes is for each chips->ecc.steps.
>
> So it's the same as ecc.bytes, which is not exported to userspace.
>
>
>> And all nand read/write
>> APIs, we handle ecc.steps (for loop). There is chips->ecc.total that
>> is initialized as (chips->ecc.steps * chips->ecc.bytes).
>>
>> It is strange that .eccbytes is for each chunk, while eccpos[] and
>> .oobfree[] have to handle/cover all chunks.
No, eccbytes should equal ecc.total
i.e. from nand_base.c
static struct nand_ecclayout nand_oob_64 = {
.eccbytes = 24,
.eccpos = {
40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63},
.oobfree = {
{.offset = 2,
.length = 38}}
};
Troy
next prev parent reply other threads:[~2009-05-07 22:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 2:29 [PATCH 2/2] NAND on DM355: Add 4-bit ECC support for large page NAND chips nsnehaprabha
2009-05-07 7:16 ` David Brownell
2009-05-07 14:13 ` Narnakaje, Snehaprabha
2009-05-07 17:11 ` David Brownell
2009-05-07 18:02 ` Narnakaje, Snehaprabha
2009-05-07 22:37 ` Troy Kisky [this message]
2009-05-08 0:03 ` Narnakaje, Snehaprabha
-- strict thread matches above, loose matches on Subject: below --
2009-05-07 8:59 vimal singh
2009-05-07 9:11 ` David Brownell
[not found] <46149.192.168.10.89.1241686786.squirrel@dbdmail.itg.ti.com>
2009-05-07 9:50 ` vimal singh
2009-05-07 16:54 ` David Brownell
[not found] <43965.192.168.10.89.1241763647.squirrel@dbdmail.itg.ti.com>
2009-05-09 4:24 ` vimal singh
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=4A0362A5.3010101@boundarydevices.com \
--to=troy.kisky@boundarydevices.com \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=nsnehaprabha@ti.com \
--cc=tglx@linutronix.de \
/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