Commit 9ac71f11 authored by Peter Tyser's avatar Peter Tyser Committed by Scott Wood

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: default avatarPeter Tyser <>
Reviewed-by: default avatarLukasz Majewski <>
Tested-by: default avatarHeiko Schocher <>
Acked-by: default avatarHeiko Schocher <>
parent 6b94f118
......@@ -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) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment