mtd: rawnand: Allow controllers to overload soft ECC hooks
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 May 2020 10:52:40 +0000 (12:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commit0e7f4b64ea46da6da5d84709d0316df9a7145f76
tree3efd51de5f65482768409bb9e152ece466894ae2
parent658beb6639606268bd48eb7de7cf308d6b10600f
mtd: rawnand: Allow controllers to overload soft ECC hooks

Some controller drivers do not support executing regular
nand_read/write_page_raw() helpers. For that, we created
nand_monolithic_read/write_page_raw() alternatives. Let's now allow
the driver to overload the ECC ->read/write_page_raw() hooks.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200507105241.14299-13-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_base.c