projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab616e
)
mtd: nand: omap2: set ECC algorithm explicitly
author
Rafał Miłecki
<zajec5@gmail.com>
Wed, 13 Apr 2016 12:06:54 +0000
(14:06 +0200)
committer
Boris Brezillon
<boris.brezillon@free-electrons.com>
Thu, 5 May 2016 21:51:52 +0000
(23:51 +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/omap2.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/omap2.c
b/drivers/mtd/nand/omap2.c
index 55916786d04e44bd27bfa0e5960b09714e66dab2..16da65baa4c79a4ef0d8271a3c4a844a0f3bdaff 100644
(file)
--- a/
drivers/mtd/nand/omap2.c
+++ b/
drivers/mtd/nand/omap2.c
@@
-2012,6
+2012,7
@@
static int omap_nand_probe(struct platform_device *pdev)
*/
if (info->ecc_opt == OMAP_ECC_HAM1_CODE_SW) {
nand_chip->ecc.mode = NAND_ECC_SOFT;
+ nand_chip->ecc.algo = NAND_ECC_HAMMING;
goto scan_tail;
}