From: Miquel Raynal Date: Wed, 27 Jan 2021 20:30:13 +0000 (+0100) Subject: mtd: nand: ecc-bch: Populate the public nsteps field X-Git-Tag: accepted/tizen/unified/20230118.172025~7394^2~2^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cd37e7e958bbc1038b90c126162532a4afaa9f8;p=platform%2Fkernel%2Flinux-rpi.git mtd: nand: ecc-bch: Populate the public nsteps field Advertize the actual number of steps that will actually be used by the driver by populating the public field. Signed-off-by: Miquel Raynal Tested-by: Adam Ford #logicpd Torpedo Link: https://lore.kernel.org/linux-mtd/20210127203020.9574-3-miquel.raynal@bootlin.com --- diff --git a/drivers/mtd/nand/ecc-sw-bch.c b/drivers/mtd/nand/ecc-sw-bch.c index 0a0ac11..5018bc0 100644 --- a/drivers/mtd/nand/ecc-sw-bch.c +++ b/drivers/mtd/nand/ecc-sw-bch.c @@ -245,6 +245,7 @@ int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) } nand->ecc.ctx.priv = engine_conf; + nand->ecc.ctx.nsteps = nsteps; nand->ecc.ctx.total = nsteps * code_size; ret = nand_ecc_sw_bch_init(nand);