projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05dd180
)
mtd: nand_base: allow drivers to choose ECC block size
author
Singh, Vimal
<vimalsingh@ti.com>
Fri, 12 Dec 2008 00:10:57 +0000
(
00:10
+0000)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:39:11 +0000
(09:39 +0100)
This patch allows core driver to choose ECC block size in
sw ecc case.
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 268c9a4317bda99def6c12377e632f00636b7ea8..4c5e8a74e1b2bf867a995eee53ed30a3951d4dc4 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-2728,7
+2728,8
@@
int nand_scan_tail(struct mtd_info *mtd)
chip->ecc.write_page_raw = nand_write_page_raw;
chip->ecc.read_oob = nand_read_oob_std;
chip->ecc.write_oob = nand_write_oob_std;
- chip->ecc.size = 256;
+ if (!chip->ecc.size)
+ chip->ecc.size = 256;
chip->ecc.bytes = 3;
break;
This page took
0.026032 seconds
and
5
git commands to generate.