mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
dfu: nand: Verify writes
Previously NAND writes were not verified and could fail silently. Add a verification step after all writes to NAND. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Heiko Schocher <hs@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
@ -64,7 +64,7 @@ static int nand_block_op(enum dfu_op op, struct dfu_entity *dfu,
|
|||||||
return ret;
|
return ret;
|
||||||
/* then write */
|
/* then write */
|
||||||
ret = nand_write_skip_bad(nand, start, &count, &actual,
|
ret = nand_write_skip_bad(nand, start, &count, &actual,
|
||||||
lim, buf, 0);
|
lim, buf, WITH_WR_VERIFY);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
Reference in New Issue
Block a user