diff options
author | Brian Norris <computersforpeace@gmail.com> | 2016-04-25 22:53:55 -0700 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:55:15 +0200 |
commit | 666b65683dad9aa90efaa4aad24ef3710101e3aa (patch) | |
tree | c784f713f3cbf7c94aede09cf6008666ed020060 /drivers/mtd/devices | |
parent | bd2e778c9ee361c23ccb2b10591712e129d97893 (diff) | |
download | linux-666b65683dad9aa90efaa4aad24ef3710101e3aa.tar.bz2 |
mtd: brcmnand: respect ECC algorithm set by NAND subsystem
This is more obvious than guessing based on ECC strength. It allows
using NAND on devices with BCH-1 (e.g. D-Link DIR-885L).
This maintains DT backward compatibility by defaulting to Hamming if a
1-bit ECC algorithm is specified without a corresponding algorithm
selection. i.e., to use BCH-1, you must specify:
nand-ecc-strength = <1>;
nand-ecc-step-size = <512>;
nand-ecc-algo = "bch";
Also adds a check to ensure we haven't allowed someone to get by with SW
ECC. If we want to support SW ECC, we need to refactor some other pieces
of this driver.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/devices')
0 files changed, 0 insertions, 0 deletions