diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-02-01 12:42:51 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-02-01 12:42:51 +0000 |
commit | 25bfa92df34ff43340f3b092106ac9ad31a035c1 (patch) | |
tree | 54ec97fa285e8feaddb38b54c98c901b41507592 /target/linux/bcm53xx | |
parent | 6c04fd68230d145082acb0a07650e6f737503289 (diff) | |
download | master-187ad058-25bfa92df34ff43340f3b092106ac9ad31a035c1.tar.gz master-187ad058-25bfa92df34ff43340f3b092106ac9ad31a035c1.tar.bz2 master-187ad058-25bfa92df34ff43340f3b092106ac9ad31a035c1.zip |
bcm53xx: change brcmnand behavior for ECC strength 1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48605 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/bcm53xx')
-rw-r--r-- | target/linux/bcm53xx/patches-4.4/400-mtd-brcmnand-stop-special-treating-ECC-strength-1-as.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-4.4/400-mtd-brcmnand-stop-special-treating-ECC-strength-1-as.patch b/target/linux/bcm53xx/patches-4.4/400-mtd-brcmnand-stop-special-treating-ECC-strength-1-as.patch new file mode 100644 index 0000000000..f7509d3636 --- /dev/null +++ b/target/linux/bcm53xx/patches-4.4/400-mtd-brcmnand-stop-special-treating-ECC-strength-1-as.patch @@ -0,0 +1,26 @@ +From c7af0732a25e5643979d55d304182309cff70ed9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> +Date: Mon, 1 Feb 2016 12:44:34 +0100 +Subject: [PATCH] mtd: brcmnand: stop special treating ECC strength 1 (as + Hamming) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Rafał Miłecki <zajec5@gmail.com> +--- + drivers/mtd/nand/brcmnand/brcmnand.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/drivers/mtd/nand/brcmnand/brcmnand.c ++++ b/drivers/mtd/nand/brcmnand/brcmnand.c +@@ -1854,7 +1854,8 @@ static int brcmnand_setup_dev(struct brc + + switch (chip->ecc.size) { + case 512: +- if (chip->ecc.strength == 1) /* Hamming */ ++ /* FIXME: We need to use strength 1 on DIR-885L */ ++ if (0 && chip->ecc.strength == 1) /* Hamming */ + cfg->ecc_level = 15; + else + cfg->ecc_level = chip->ecc.strength; |