Bug in cfi_cmdset_0002.c in linux-2.6.8.1
Jochen Karrer
j.karrer at lightmaze.com
Thu Aug 26 09:11:22 EDT 2004
Hi,
jffs2 did not work in linux-2.6.8.1 because single word writes at the end
of a buffer write are done with the wrong address:
--- /home/jkarrer/kernel/linux-2.6.8.1/drivers/mtd/chips/cfi_cmdset_0002.c
Sat Aug 14 12:55:20 2004
+++ cfi_cmdset_0002.c Thu Aug 26 14:33:42 2004
@@ -1128,7 +1128,7 @@
if (len) {
size_t retlen_dregs = 0;
- ret = cfi_amdstd_write_words(mtd, to, len, &retlen_dregs, buf);
+ ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), len,
&retlen_dregs, buf);
*retlen += retlen_dregs;
return ret;
Jochen
More information about the linux-mtd
mailing list