All of lore.kernel.org
 help / color / mirror / Atom feed
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: Mon, 30 Nov 2009 11:02:03 -0600	[thread overview]
Message-ID: <20091130170203.GA11103@loki.buserror.net> (raw)
In-Reply-To: <4B0A660A.8070100@gefanuc.com>

On Mon, Nov 23, 2009 at 10:38:02AM +0000, Nick Thompson wrote:
> > Ideally a high-level driver like fsl_elbc_nand wouldn't have to implement
> > cmdfunc at all.
> 
> I'm not sure I know what you mean here. I'll have a look at that code.

The eLBC NAND controller presents an interface that runs entire NAND
operations at once.  In order to implement cmdfunc, we have to interpret
what the higher levels are trying to do and then turn it into something the
hardware will accept.

It would be much more straightforward to implement high-level "erase block",
"progam page", "read page", etc. operations.

> cmdfunc should probably be simplified to only send command sequences and
> not invoke any nand wait functions. This gets in the way of some useful
> optimisation. If some drivers are replacing it, it will be more difficult
> to coordinate changes.

For the eLBC, we have to issue commands and wait as one operation, or else
the bus controller can change chipselects in the meantime, causing problems
with shared pins.  More reason to not make cmdfunc the only way to hook in a
driver...

-Scott

      reply	other threads:[~2009-11-30 17:02 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
2009-11-23 10:38   ` Nick Thompson
2009-11-30 17:02     ` Scott Wood [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=20091130170203.GA11103@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 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.