projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc71538
)
mtd: nand: set ECC algorithm to Hamming on fallback
author
Rafał Miłecki
<zajec5@gmail.com>
Sun, 17 Apr 2016 20:53:02 +0000
(22:53 +0200)
committer
Boris Brezillon
<boris.brezillon@free-electrons.com>
Thu, 5 May 2016 21:52:04 +0000
(23:52 +0200)
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 9f157bb3faa22d271229f226731d7d25a5c7f221..2a049576ab31f0f025e68f4b89037935938ec531 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-4337,6
+4337,7
@@
int nand_scan_tail(struct mtd_info *mtd)
pr_warn("%d byte HW ECC not possible on %d byte page size, fallback to SW ECC\n",
ecc->size, mtd->writesize);
ecc->mode = NAND_ECC_SOFT;
+ ecc->algo = NAND_ECC_HAMMING;
case NAND_ECC_SOFT:
ecc->calculate = nand_calculate_ecc;