[PATCH v13 08/20] mtd: nand: Introduce the ECC engine framework

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 7 03:24:28 EDT 2020


On Thu, 2020-08-27 at 08:51:56 UTC, Miquel Raynal wrote:
> Create a generic ECC engine framework. This is a base to instantiate ECC
> engine objects.
> 
> If we really want to be generic, bindings must evolve, so here is the
> new logic. The following three properties are mutually exclusive:
> - The nand-no-ecc-engine boolean property is set and there is no
>   ECC engine to retrieve.
> - The nand-use-soft-ecc-engine boolean property is set and the core
>   will force using the use of software correction.
> - There is a nand-ecc-engine property pointing at a node which will
>   act as ECC engine.
> 
> It the later case, the property may reference:
> - The NAND chip node itself (for the on-die ECC case).
> - The parent node if the NAND controller embeds an ECC engine.
> - Any other node being an external ECC controller as well.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel



More information about the linux-mtd mailing list