400-mtd-brcmnand-stop-special-treating-ECC-strength-1-as.patch 910 B

1234567891011121314151617181920212223242526
  1. From c7af0732a25e5643979d55d304182309cff70ed9 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Mon, 1 Feb 2016 12:44:34 +0100
  4. Subject: [PATCH] mtd: brcmnand: stop special treating ECC strength 1 (as
  5. Hamming)
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  10. ---
  11. drivers/mtd/nand/brcmnand/brcmnand.c | 3 ++-
  12. 1 file changed, 2 insertions(+), 1 deletion(-)
  13. --- a/drivers/mtd/nand/brcmnand/brcmnand.c
  14. +++ b/drivers/mtd/nand/brcmnand/brcmnand.c
  15. @@ -1886,7 +1886,8 @@ static int brcmnand_setup_dev(struct brc
  16. switch (chip->ecc.size) {
  17. case 512:
  18. - if (chip->ecc.strength == 1) /* Hamming */
  19. + /* FIXME: We need to use strength 1 on DIR-885L */
  20. + if (0 && chip->ecc.strength == 1) /* Hamming */
  21. cfg->ecc_level = 15;
  22. else
  23. cfg->ecc_level = chip->ecc.strength;