diff options
author | Nick Spence <Nick.Spence@freescale.com> | 2006-09-30 00:32:59 -0700 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2006-11-03 19:42:17 -0600 |
commit | 04f899fc465c3e44f2b55ecc70618f5696fc0ddf (patch) | |
tree | 5c8581b76e8331c0eea71e060a8ce052784ac136 /drivers | |
parent | f484dc791a3932537213c43c654cc1295c64b84c (diff) | |
download | u-boot-04f899fc465c3e44f2b55ecc70618f5696fc0ddf.tar.gz u-boot-04f899fc465c3e44f2b55ecc70618f5696fc0ddf.tar.xz u-boot-04f899fc465c3e44f2b55ecc70618f5696fc0ddf.zip |
NAND Flash verify across block boundaries
This patch addresses a problem when CONFIG_MTD_NAND_VERIFY_WRITE is
defined
and the write crosses a block boundary. The pointer to the verification
buffer (bufstart) is not being updated to reflect the starting of the
new
block so the verification of the second block fails.
CHANGELOG:
* Fix NAND FLASH page verification across block boundaries
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nand/nand_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nand/nand_base.c b/drivers/nand/nand_base.c index b7a5d32fb3..6b13c4e0e3 100644 --- a/drivers/nand/nand_base.c +++ b/drivers/nand/nand_base.c @@ -1713,6 +1713,7 @@ static int nand_write_ecc (struct mtd_info *mtd, loff_t to, size_t len, goto out; } *retlen = written; + bufstart = (u_char*) &buf[written]; ofs = autoplace ? mtd->oobavail : mtd->oobsize; if (eccbuf) |