]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: rawnand: Try not to use the ECC private structures
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:17 +0000 (21:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:28 +0000 (09:37 +0100)
commit5b9215acb5182355a8a3c9f0a930e6b51c6eea57
treec9fe523aecd34816e8a54992236376a4ddef11b0
parentba4a40a483da86d76bd69957c21fcb975b8405ae
mtd: rawnand: Try not to use the ECC private structures

Most of the time, there is no need to use the software ECC Hamming and
BCH algorithms private context to know their configuration. All the
data has been stored by their ->init_ctx() hook in the generic NAND
ECC engine structure, so use this one when possible.

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-7-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_base.c