Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote on Tue, 2 Jun 2020 18:03:20 +0200: > On Tue, 2 Jun 2020 16:31:20 +0200 > Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote: > > > Embed a generic NAND ECC high-level object in the nand_device > > structure to carry all the ECC engine configuration/data. > > > > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > > --- > > drivers/mtd/nand/raw/nand_base.c | 4 +++- > > include/linux/mtd/nand.h | 12 ++++++------ > > 2 files changed, 9 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c > > index e8e22d79f422..ed0f642be993 100644 > > --- a/drivers/mtd/nand/raw/nand_base.c > > +++ b/drivers/mtd/nand/raw/nand_base.c > > @@ -5984,7 +5984,9 @@ static int nand_scan_tail(struct nand_chip *chip) > > /* ECC sanity check: warn if it's too weak */ > > if (!nand_ecc_strength_good(chip)) > > pr_warn("WARNING: %s: the ECC used on your system (%db/%dB) is too weak compared to the one required by the NAND chip (%db/%dB)\n", > > - mtd->name, chip->ecc.strength, chip->ecc.size, > > + mtd->name, > > + nanddev_get_ecc_conf(&chip->base)->strength, > > + nanddev_get_ecc_conf(&chip->base)->step_size, > > Hm, are you sure all places using chip->ecc.{strength,size} have been > patched to use nanddev_get_ecc_conf()? Not yet, I thought I removed this change but apparently not. I will drop this. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/