projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a4123e
)
mtd: nand: fix 512 byte software ecc support
author
Vimal Singh
<vimalsingh@ti.com>
Mon, 23 Feb 2009 08:16:08 +0000
(13:46 +0530)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 5 Jun 2009 16:40:14 +0000
(17:40 +0100)
Type of 'byte_addr' needes to be 'unsigned int' for 512 byte
ECC support.
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_ecc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/nand_ecc.c
b/drivers/mtd/nand/nand_ecc.c
index 868147acce2cec19677605e2bdcf67d8b5e9a14c..c0cb87d6d16e27ec697c77e719e6723eae9ce6de 100644
(file)
--- a/
drivers/mtd/nand/nand_ecc.c
+++ b/
drivers/mtd/nand/nand_ecc.c
@@
-428,8
+428,8
@@
EXPORT_SYMBOL(nand_calculate_ecc);
int nand_correct_data(struct mtd_info *mtd, unsigned char *buf,
unsigned char *read_ecc, unsigned char *calc_ecc)
{
- unsigned char b0, b1, b2;
- unsigned
char byte_addr, bit
_addr;
+ unsigned char b0, b1, b2
, bit_addr
;
+ unsigned
int byte
_addr;
/* 256 or 512 bytes/ecc */
const uint32_t eccsize_mult =
(((struct nand_chip *)mtd->priv)->ecc.size) >> 8;