[PATCH v13 13/20] mtd: nand: Create helpers to set/extract the ECC requirements
Miquel Raynal
miquel.raynal at bootlin.com
Mon Sep 7 03:24:01 EDT 2020
On Thu, 2020-08-27 at 08:52:01 UTC, Miquel Raynal wrote:
> Despite its current name, the eccreq field actually encodes both the
> NAND requirements and the final ECC configuration. That works fine when
> using on-die ECC since those 2 concepts match perfectly, but it starts
> being a problem as soon as we use on-host ECC engines, where we're not
> guaranteed to have a perfect match.
>
> Let's hide the ECC requirements access behind helpers so we can later
> split those 2 concepts. As the structures have not been clarified yet,
> these helpers access the same internal variable as
> nanddev_get_ecc_conf() for now.
>
> 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