Skip to content

Commit 2bc6118

Browse files
committed
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
1 parent a38fd87 commit 2bc6118

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/mtd/nand.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,14 @@ struct nand_ops {
231231
/**
232232
* struct nand_ecc_context - Context for the ECC engine
233233
* @conf: basic ECC engine parameters
234+
* @nsteps: number of ECC steps
234235
* @total: total number of bytes used for storing ECC codes, this is used by
235236
* generic OOB layouts
236237
* @priv: ECC engine driver private data
237238
*/
238239
struct nand_ecc_context {
239240
struct nand_ecc_props conf;
241+
unsigned int nsteps;
240242
unsigned int total;
241243
void *priv;
242244
};

0 commit comments

Comments
 (0)