提交 9ac71f11 编写于 作者: P Peter Tyser 提交者: 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: NPeter Tyser <ptyser@xes-inc.com>
Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
Tested-by: NHeiko Schocher <hs@denx.de>
Acked-by: NHeiko Schocher <hs@denx.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册