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:
7908245
)
mtd: nand: nandsim: set ECC algorithm explicitly
author
Rafał Miłecki
<
[email protected]
>
Wed, 23 Mar 2016 10:19:03 +0000
(11:19 +0100)
committer
Boris Brezillon
<
[email protected]
>
Tue, 19 Apr 2016 20:04:49 +0000
(22:04 +0200)
This follows recent work on switching to enum nand_ecc_algo and
deprecating NAND_ECC_SOFT_BCH.
Signed-off-by: Rafał Miłecki <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/nandsim.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nandsim.c
b/drivers/mtd/nand/nandsim.c
index 1fd519503bb17b4ea3d76ede948437a265178f1f..6ff1d8d31ac243a04bac28222a246c821b5888c9 100644
(file)
--- a/
drivers/mtd/nand/nandsim.c
+++ b/
drivers/mtd/nand/nandsim.c
@@
-2261,6
+2261,7
@@
static int __init ns_init_module(void)
chip->read_buf = ns_nand_read_buf;
chip->read_word = ns_nand_read_word;
chip->ecc.mode = NAND_ECC_SOFT;
+ chip->ecc.algo = NAND_ECC_HAMMING;
/* The NAND_SKIP_BBTSCAN option is necessary for 'overridesize' */
/* and 'badblocks' parameters to work */
chip->options |= NAND_SKIP_BBTSCAN;
@@
-2339,6
+2340,7
@@
static int __init ns_init_module(void)
goto error;
}
chip->ecc.mode = NAND_ECC_SOFT_BCH;
+ chip->ecc.algo = NAND_ECC_BCH;
chip->ecc.size = 512;
chip->ecc.strength = bch;
chip->ecc.bytes = eccbytes;