projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bc6118
)
mtd: nand: ecc-bch: Populate the public nsteps field
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:13 +0000
(21:30 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:27 +0000
(09:37 +0100)
Advertize the actual number of steps that will actually be used by the
driver by populating the public field.
Signed-off-by: Miquel 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
drivers/mtd/nand/ecc-sw-bch.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/ecc-sw-bch.c
b/drivers/mtd/nand/ecc-sw-bch.c
index 0a0ac11d5725a545c5d36396b41c2007646bfcaa..5018bc0db6269745087fe3ee32f3e0f75f5a4daa 100644
(file)
--- 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);