[rb532] refresh 2.6.24 patches
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1056-fix-hwecc-2410.patch.patch
1 From 1b629ded094c800293cf694e85d0c5b66cc9fcfd Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Fri, 25 Jul 2008 22:21:25 +0100
4 Subject: [PATCH] fix-hwecc-2410.patch
5 S3C24xx ECC mis-calculates the bit to flip:
6 http://lists.infradead.org/pipermail/linux-mtd/2007-October/019586.html
7 If the error couldn't be corrected, we returned "no problem" :-(
8 http://lists.infradead.org/pipermail/linux-mtd/2007-October/019615.html
9
10 Signed-off-by: Werner Almesberger <werner@openmoko.org>
11 ---
12 drivers/mtd/nand/s3c2410.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15 diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
16 index 8e1e482..4f747b1 100644
17 --- a/drivers/mtd/nand/s3c2410.c
18 +++ b/drivers/mtd/nand/s3c2410.c
19 @@ -406,7 +406,7 @@ static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat,
20 if ((diff0 & ~(1<<fls(diff0))) == 0)
21 return 1;
22
23 - return -1;
24 + return -EBADMSG;
25 }
26
27 /* ECC functions
28 --
29 1.5.6.3
30
This page took 0.050491 seconds and 5 git commands to generate.