projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38fd87
)
mtd: nand: Let ECC engines advertize the exact number of steps
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:12 +0000
(21:30 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:27 +0000
(09:37 +0100)
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
include/linux/mtd/nand.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/mtd/nand.h
b/include/linux/mtd/nand.h
index 414f8a4d28538c04a197977d9d7bb5b9351534df..632becb13b46020fff630920bc1c5200dd0c7eb0 100644
(file)
--- 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;
};