diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
commit | 845092569c227454f28d77e647d386ab7cc1419f (patch) | |
tree | efab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch | |
parent | d565bb20de4a9dec01f2f4c0f62be55eb61435a9 (diff) | |
download | upstream-845092569c227454f28d77e647d386ab7cc1419f.tar.gz upstream-845092569c227454f28d77e647d386ab7cc1419f.tar.bz2 upstream-845092569c227454f28d77e647d386ab7cc1419f.zip |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch b/target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch new file mode 100755 index 0000000000..6754ec4898 --- /dev/null +++ b/target/linux/s3c24xx/patches/0056-fix-hwecc-2410.patch.patch @@ -0,0 +1,30 @@ +From 1b629ded094c800293cf694e85d0c5b66cc9fcfd Mon Sep 17 00:00:00 2001 +From: mokopatches <mokopatches@openmoko.org> +Date: Fri, 25 Jul 2008 22:21:25 +0100 +Subject: [PATCH] fix-hwecc-2410.patch + S3C24xx ECC mis-calculates the bit to flip: + http://lists.infradead.org/pipermail/linux-mtd/2007-October/019586.html + If the error couldn't be corrected, we returned "no problem" :-( + http://lists.infradead.org/pipermail/linux-mtd/2007-October/019615.html + +Signed-off-by: Werner Almesberger <werner@openmoko.org> +--- + drivers/mtd/nand/s3c2410.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c +index 8e1e482..4f747b1 100644 +--- a/drivers/mtd/nand/s3c2410.c ++++ b/drivers/mtd/nand/s3c2410.c +@@ -406,7 +406,7 @@ static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, + if ((diff0 & ~(1<<fls(diff0))) == 0) + return 1; + +- return -1; ++ return -EBADMSG; + } + + /* ECC functions +-- +1.5.6.3 + |