[PATCH 3/6] mtd: nand: Allow to set a per-device ECC layout
Daniel Ehrenberg
dehrenberg at chromium.org
Fri Dec 12 16:34:43 PST 2014
On Tue, Dec 2, 2014 at 4:58 AM, Ezequiel Garcia
<ezequiel.garcia at imgtec.com> wrote:
> Until now, the ECC was handled either by Linux (i.e. software ECC) or by the
> NAND controller (i.e. hardware ECC). In each of these, the ECC layout is
> defined by the controller of the NAND device, not by the NAND device itself.
>
> However, devices with on-die ECC support have their own ECC layout so we need
> a way to specify a per-device ECC layout.
>
> This commit adds a new field to the nand_flash_dev structure, to allow devices
> to specify its own ECC layout.
>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia at imgtec.com>
Reviewed-by: Dan Ehrenberg <dehrenberg at chromium.org>
More information about the linux-mtd
mailing list