]> git.ipfire.org Git - people/ms/u-boot.git/commit
nand util: read/write: accept unaligned length
authorScott Wood <scottwood@freescale.com>
Fri, 30 Jul 2010 21:11:41 +0000 (16:11 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 11 Oct 2010 20:09:23 +0000 (15:09 -0500)
commitf9a5254111a6be2a39464f65a96f4fc2305e3c76
treec03bcbaf8c60cc46544e5387aa6d5fb44a3e9bef
parentbfc7bea6adc46e1db2f5a5e3464d7652ed67c864
nand util: read/write: accept unaligned length

The underlying code in nand_base.c already supports non-page-aligned reads
and writes, but the block-skipping wrapper code did not.

With block skipping, an unaligned start address is not useful since you
really want to be starting at the beginning of a partition -- or at least
that's where you want to start checking for blocks to skip, but we don't
(yet) support that.  So we still require the start address to be aligned.

An unaligned length, though, is useful for passing $filesize to the
read/write command, and handling it does not complicate block skipping.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_util.c