Commit 7cd37e7e authored by Miquel Raynal's avatar Miquel Raynal

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Adam Ford <aford173@gmail.com> #logicpd Torpedo
Link: https://lore.kernel.org/linux-mtd/20210127203020.9574-3-miquel.raynal@bootlin.com
parent 2bc61184
...@@ -245,6 +245,7 @@ int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) ...@@ -245,6 +245,7 @@ int nand_ecc_sw_bch_init_ctx(struct nand_device *nand)
} }
nand->ecc.ctx.priv = engine_conf; nand->ecc.ctx.priv = engine_conf;
nand->ecc.ctx.nsteps = nsteps;
nand->ecc.ctx.total = nsteps * code_size; nand->ecc.ctx.total = nsteps * code_size;
ret = nand_ecc_sw_bch_init(nand); ret = nand_ecc_sw_bch_init(nand);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment