]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Add an option to maximize the ECC strength
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Jun 2016 15:04:22 +0000 (17:04 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commitb30c5f99c1261a5d7d7c68d59d802ab37eb1a1ee
tree161e3a423c8ae027e651ec3514a2e4abbd48f3db
parent9c2093bd846e6d1ceb8cae2dd88b14ad946136b3
mtd: nand: Add an option to maximize the ECC strength

The generic NAND DT bindings allows one to tweak the ECC strength and
step size to their need. It can be used to lower the ECC strength to
match a bootloader/firmware config, but might also be used to get a better
reliability.

In the latter case, the user might want to use the maximum ECC strength
without having to explicitly calculate the exact value (this value not
only depends on the OOB size, but also on the NAND controller, and can
be tricky to extract).

Add a generic 'nand-ecc-maximize' DT property and the associated
NAND_ECC_MAXIMIZE flag, to let ECC controller drivers select the best
ECC strength and step-size on their own.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/mtd/nand.txt
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h