From: Peter Tyser Date: Tue, 3 Feb 2015 17:58:14 +0000 (-0600) Subject: dfu: nand: Verify writes X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d;p=u-boot.git 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 Reviewed-by: Lukasz Majewski Tested-by: Heiko Schocher Acked-by: Heiko Schocher --- diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c index f9ee18999a..a9754922e8 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) {