On Mon, 4 May 2020 10:24:09 +0200 Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote: > This can be used to discriminate between two path in the parameter > page detection: use data_in cycles (like before) if supported, use the > CHANGE READ COLUMN command otherwise. > > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > --- > drivers/mtd/nand/raw/fsmc_nand.c | 2 +- > drivers/mtd/nand/raw/marvell_nand.c | 4 +-- > drivers/mtd/nand/raw/nand_base.c | 48 +++++++++++++++++------------ > drivers/mtd/nand/raw/nand_jedec.c | 2 +- > drivers/mtd/nand/raw/nand_legacy.c | 8 +++-- > drivers/mtd/nand/raw/nand_micron.c | 6 ++-- > drivers/mtd/nand/raw/nand_onfi.c | 3 +- > include/linux/mtd/rawnand.h | 2 +- > 8 files changed, 44 insertions(+), 31 deletions(-) > > diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c > index 59ef2b6a21b5..735c2216149f 100644 > --- a/drivers/mtd/nand/raw/fsmc_nand.c > +++ b/drivers/mtd/nand/raw/fsmc_nand.c > @@ -694,7 +694,7 @@ static int fsmc_read_page_hwecc(struct nand_chip *chip, u8 *buf, > for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { > nand_read_page_op(chip, page, s * eccsize, NULL, 0); > chip->ecc.hwctl(chip, NAND_ECC_READ); > - ret = nand_read_data_op(chip, p, eccsize, false); > + ret = nand_read_data_op(chip, p, eccsize, false, false); I feel like we should provide wrappers around those functions that take a check_only param: static inline int nand_exec_read_data_op(...) { return nand_read_data_op(..., false); } static inline int nand_check_read_data_op(...) { return nand_read_data_op(..., true); } but let's keep that for later. Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/