summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2015-02-03 11:58:14 -0600
committerScott Wood <scottwood@freescale.com>2015-03-30 23:24:38 -0500
commit9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d (patch)
tree5168327157e1bca58b690a66d78b2d984baa717c
parent6b94f118a213583ada80bab25fedacc08562392d (diff)
downloadu-boot-imx-9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d.zip
u-boot-imx-9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d.tar.gz
u-boot-imx-9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d.tar.bz2
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>
-rw-r--r--drivers/dfu/dfu_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c
index f9ee189..a975492 100644
--- a/drivers/dfu/dfu_nand.c
+++ b/drivers/dfu/dfu_nand.c
@@ -64,7 +64,7 @@ static int nand_block_op(enum dfu_op op, struct dfu_entity *dfu,
return ret;
/* then write */
ret = nand_write_skip_bad(nand, start, &count, &actual,
- lim, buf, 0);
+ lim, buf, WITH_WR_VERIFY);
}
if (ret != 0) {