mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
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
This commit is contained in:
parent
f484dc791a
commit
04f899fc46
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue