From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RFC] nand: remove spurious read cycle in OOB first page reads
Date: Fri, 20 Nov 2009 14:17:20 -0600 [thread overview]
Message-ID: <20091120201720.GA19451@loki.buserror.net> (raw)
In-Reply-To: <4B06B626.4070007@gefanuc.com>
On Fri, Nov 20, 2009 at 03:30:46PM +0000, Nick Thompson wrote:
> In the case of a nand controller that needs the OOB data before
> it can read the page data, an unnecessary read sequence is sent
> to the nand. This reduces read performance.
By how much? Is a similar patch going into Linux?
> This sequence is sent by default before all page reads, but the
> OOB first page read function immediately issues a new command, a
> simulated READOOB command, which overrides the previous sequence.
Is it just a performance issue, or could some NAND chips get confused by the
aborted read command?
> This patch (fragment) prevents the initial read sequence from
> being sent if chip->ecc.mode indicates OOB first operation.
I can apply this if it's needed, but I'm hesitant to keep adding workarounds
for layering problems. Is there any way we can push all cmdfunc invocations
into replaceable functions? Have nand_do_read_ops just be a loop around
high-level "read page" functions that are replaceable, and which can keep
their own state to determine whether autoinc is applicable.
Ideally a high-level driver like fsl_elbc_nand wouldn't have to implement
cmdfunc at all.
-Scott
next prev parent reply other threads:[~2009-11-20 20:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-20 15:30 [U-Boot] [PATCH RFC] nand: remove spurious read cycle in OOB first page reads Nick Thompson
2009-11-20 20:17 ` Scott Wood [this message]
2009-11-23 10:38 ` Nick Thompson
2009-11-30 17:02 ` Scott Wood
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=20091120201720.GA19451@loki.buserror.net \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.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