Hi Peter, > Previously NAND writes were not verified and could fail silently. Add > a verification step after all writes to NAND. > > Signed-off-by: Peter Tyser <pty...@xes-inc.com> > --- > I don't have a board with DFU support, so this change is untested. > > drivers/dfu/dfu_nand.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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) {
Reviewed-by: Lukasz Majewski <l.majew...@samsung.com> I think that Heiko or Tom, who are active users of DFU NAND, should check this patch too. -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot