mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
b062266ad6
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
910 B
Diff
27 lines
910 B
Diff
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
|
|
@@ -1886,7 +1886,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;
|