From: Derek Ou <derek@siconix.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Pad data length for nand write
Date: Tue, 17 Feb 2009 14:37:24 -0700 [thread overview]
Message-ID: <499B2E14.3020109@siconix.com> (raw)
In-Reply-To: <499B2949.80505@freescale.com>
Currently, the nand_util.c does not manipulate NAND flash page by page.
It's the nand_base.c provides that level of NAND control.
Implementing this properly requires changes to the existing structure.
Also, adding "+length" syntax means command interface change as well.
Since it's not to the interest of my company to implement new feature
instead of maintaining existing behavior, I will not look into this in
my working hours then. So everybody is welcomed to work on this issue
and submit your patches. I'd love to see them.
By the way, I think WATCHDOG_RESET() should be added to
nand_do_write_opts() and nand_do_read_opts() at nand_base.c. Please
include it if you have patch for the above implementation.
Derek
Scott Wood wrote:
> You can define a static array for holding one page, as v1.3.4 did.
> The space after the caller's buffer is *not* a safe location.
>> Maybe we should implement, like Wolfgang said, a "+length" syntax in
>> the "nand write"
>> command to indicates "round up to the next page boundary".
> Sounds good. If we do that, we should do similarly with "nand erase".
> It currently (sometimes) warns and rounds up if you give it a
> non-block-aligned size.
>> In this case, do_nand()
>> can assume that it's safe to write pass memory address (add + length)
>> and Flash offset
>> (off + length).
> No, it will *not* assume that it's safe to write to any memory of the
> caller's. It will allocate its own buffer.
>
> -Scott
next prev parent reply other threads:[~2009-02-17 21:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-17 17:15 [U-Boot] [PATCH] Pad data length for nand write Derek Ou
2009-02-17 17:15 ` Derek Ou
2009-02-17 18:51 ` Scott Wood
2009-02-17 20:54 ` Derek Ou
2009-02-17 21:16 ` Scott Wood
2009-02-17 21:37 ` Derek Ou [this message]
2009-02-17 17:55 ` Mike Frysinger
2009-02-17 18:37 ` Derek Ou
2009-02-17 18:41 ` Scott Wood
2009-02-17 20:22 ` Wolfgang Denk
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=499B2E14.3020109@siconix.com \
--to=derek@siconix.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