linux/drivers/mtd/nand/spi
Miquel Raynal f9d7c7265b mtd: spinand: Create direct mapping descriptors for ECC operations
In order for pipelined ECC engines to be able to enable/disable the ECC
engine only when needed and avoid races when future parallel-operations
will be supported, we need to provide the information about the use of
the ECC engine in the direct mapping hooks. As direct mapping
configurations are meant to be static, it is best to create two new
mappings: one for regular 'raw' accesses and one for accesses involving
correction. It is up to the driver to use or not the new ECC enable
boolean contained in the spi-mem operation.

As dirmaps are not free (they consume a few pages of MMIO address space)
and because these extra entries are only meant to be used by pipelined
engines, let's limit their use to this specific type of engine and save
a bit of memory with all the other setups.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20220127091808.1043392-9-miquel.raynal@bootlin.com
2022-02-10 09:32:30 +01:00
..
core.c mtd: spinand: Create direct mapping descriptors for ECC operations 2022-02-10 09:32:30 +01:00
gigadevice.c mtd: spinand: gigadevice: Support GD5F1GQ5UExxG 2021-03-11 09:37:29 +01:00
Kconfig mtd: spinand: Use the external ECC engine logic 2020-12-10 22:37:30 +01:00
macronix.c mtd: spinand: macronix: Use random program load 2022-01-23 12:36:22 +01:00
Makefile mtd: spinand: Add initial support for Paragon PN26G0xA 2019-06-27 20:13:07 +02:00
micron.c mtd: spinand: micron: Add support for MT29F2G01AAAED 2020-12-10 22:37:32 +01:00
paragon.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00
toshiba.c mtd: spinand: toshiba: Demote non-conformant kernel-doc header 2020-11-20 12:37:31 +01:00
winbond.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00