mtd: rawnand: micron: Allow controllers to overload raw accessors
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 May 2020 10:52:41 +0000 (12:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commit22dc5f9d490655a4ae1fbc55f93daa8e85b1c38f
tree4bb200a32e68a3780f52a949ada0325b83a85dc2
parent0e7f4b64ea46da6da5d84709d0316df9a7145f76
mtd: rawnand: micron: Allow controllers to overload raw accessors

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 when
these hooks are supported.

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