From: Artem Bityutskiy <dedekind@infradead.org>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: Linux mtd <linux-mtd@lists.infradead.org>
Subject: Re: Reading less than page size from NAND ok?
Date: Wed, 18 Oct 2006 14:28:17 +0300 [thread overview]
Message-ID: <1161170898.3260.125.camel@sauron> (raw)
In-Reply-To: <Pine.LNX.4.64.0610181315170.25906@lnxricardw.se.axis.com>
On Wed, 2006-10-18 at 13:22 +0200, Ricard Wanderlof wrote:
> In the NAND boot code for U-Boot 1.4.4 (which use MTD (albeit an old
> version)), there is a note that when reading from NAND flash via the mtd
> layer (i.e. eventually ending up in nand_do_read_ecc()), one should start
> reading on a page boundary and read at least one page of data, in order to
> get proper ECC behavior.
>
> However, when looking at the latest mtd code, it appears that this no
> longer is the case - when reading bursts of data less than one page, the
> data is internally buffered and a complete page read so that ECC is always
> applied properly. Is this in fact the case, or have I missed something
> vital here? (Was there such a limitation once?)
>
I am not sure about the past, but now you can read from any offset and
any number of bytes using MTD interface, even though you read from NAND
flash which has minimal I/O unit = 1 NAND page. MTD takes care of this.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
prev parent reply other threads:[~2006-10-18 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 11:22 Reading less than page size from NAND ok? Ricard Wanderlof
2006-10-18 11:28 ` Artem Bityutskiy [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=1161170898.3260.125.camel@sauron \
--to=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=ricard.wanderlof@axis.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