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:
d9944e1
)
mtd: nand: fsl_upm: set ECC algorithm explicitly
author
Rafał Miłecki
<
[email protected]
>
Wed, 13 Apr 2016 12:07:00 +0000
(14:07 +0200)
committer
Boris Brezillon
<
[email protected]
>
Thu, 5 May 2016 21:51:54 +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 <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/fsl_upm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/fsl_upm.c
b/drivers/mtd/nand/fsl_upm.c
index cafd12de72766f193ce409d46ac5ae9b3e9489a9..d85fa2555b6838b967ab3aee36f78360ec6ac321 100644
(file)
--- a/
drivers/mtd/nand/fsl_upm.c
+++ b/
drivers/mtd/nand/fsl_upm.c
@@
-170,6
+170,7
@@
static int fun_chip_init(struct fsl_upm_nand *fun,
fun->chip.read_buf = fun_read_buf;
fun->chip.write_buf = fun_write_buf;
fun->chip.ecc.mode = NAND_ECC_SOFT;
+ fun->chip.ecc.algo = NAND_ECC_HAMMING;
if (fun->mchip_count > 1)
fun->chip.select_chip = fun_select_chip;