On Mon, 27 Apr 2020 21:51:32 +0200 Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote: > Hi Boris, > > Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote on Mon, 27 Apr > 2020 10:20:21 +0200: > > > cafe_nand_write_page_lowlevel() sets the ECC auto-generation flag but > > IIRC you renamed this function in patch 1 so now it is named > "_write_page()". > > > never clears it, thus forcing the cafe_nand_cmdfunc() to clear it > > in certain circumstances. Let's just clear this flag in > > cafe_nand_write_page_lowlevel() instead. > > Same here ^ > Right. That's what happens when you re-order commits without paying attention to the commit message. > > - return nand_prog_page_end_op(chip); > > + ret = nand_prog_page_end_op(chip); > > + > > + /* > > + * And clear it before returning so that following write operations > > + * that do not involve ECC don't generate ECC bytes. > > + */ > > + cafe->ctl2 &= ~CAFE_NAND_CTRL2_AUTO_WRITE_ECC; > > I like spaces before returning, but again it's really a nitpick, you > can ignore that :) > Will add a blank line here as well. > > + return ret; > > } > > > > /* F_2[X]/(X**6+X+1) */ ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/