public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Bug in cfi_cmdset_0002.c in linux-2.6.8.1
@ 2004-08-26 13:11 Jochen Karrer
  2004-08-26 14:02 ` Steven Scholz
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Jochen Karrer @ 2004-08-26 13:11 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-11-11 18:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 13:11 Bug in cfi_cmdset_0002.c in linux-2.6.8.1 Jochen Karrer
2004-08-26 14:02 ` Steven Scholz
2004-08-26 14:12 ` David Woodhouse
2004-08-26 14:48   ` Jochen Karrer
2004-09-14 19:41 ` Thayne Harbaugh
2004-09-14 20:47   ` David Woodhouse
2004-09-15 17:19     ` Thayne Harbaugh
2004-09-15 17:41       ` David Woodhouse
2004-09-15 23:34     ` Thayne Harbaugh
2004-09-15  8:16   ` Manfred Gruber
2004-11-11 16:10 ` Steven Scholz
2004-11-11 17:45   ` Thayne Harbaugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox