aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2021-01-27 21:30:12 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 09:37:27 +0100
commit2bc611844b5d2c43b63bdf71ae6395fa7a6566cc (patch)
treef350226b68e186e90940302def92997e0a143ac1 /include/linux/mtd/nand.h
parentLinux 5.12-rc2 (diff)
downloadlinux-dev-2bc611844b5d2c43b63bdf71ae6395fa7a6566cc.tar.xz
linux-dev-2bc611844b5d2c43b63bdf71ae6395fa7a6566cc.zip
mtd: nand: Let ECC engines advertize the exact number of steps
This is an information that might be useful for specific uses, so export it, which might avoid having to guess the number of steps when necessary. 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-2-miquel.raynal@bootlin.com
Diffstat (limited to '')
-rw-r--r--include/linux/mtd/nand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 414f8a4d2853..632becb13b46 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -231,12 +231,14 @@ struct nand_ops {
/**
* struct nand_ecc_context - Context for the ECC engine
* @conf: basic ECC engine parameters
+ * @nsteps: number of ECC steps
* @total: total number of bytes used for storing ECC codes, this is used by
* generic OOB layouts
* @priv: ECC engine driver private data
*/
struct nand_ecc_context {
struct nand_ecc_props conf;
+ unsigned int nsteps;
unsigned int total;
void *priv;
};