From: Thayne Harbaugh <tharbaugh@lnxi.com>
To: Jochen Karrer <j.karrer@lightmaze.com>
Cc: dwmw2@infradead.org, steven.scholz@imc-berlin.de,
linux-mtd@lists.infradead.org
Subject: Re: Bug in cfi_cmdset_0002.c in linux-2.6.8.1
Date: Tue, 14 Sep 2004 13:41:28 -0600 [thread overview]
Message-ID: <1095190893.5442.35.camel@tubarao> (raw)
In-Reply-To: <MKELJOLMMOHJCMIPKLJKCEMOCAAA.j.karrer@lightmaze.com>
On Thu, 2004-08-26 at 15:11 +0200, Jochen Karrer wrote:
> 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;
I never saw that this patch was committed. I didn't do anything with it
because I'm not so familiar with that piece in cfi_cmdset_0002.c (and am
too lazy to read the function). I did notice that Steven Scholz
confirmed that it fixed problems he was seeing.
Anyone else that cares should comment now or I'll commit it so that it
doesn't get forgotten.
next prev parent reply other threads:[~2004-09-14 20:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1095190893.5442.35.camel@tubarao \
--to=tharbaugh@lnxi.com \
--cc=dwmw2@infradead.org \
--cc=j.karrer@lightmaze.com \
--cc=linux-mtd@lists.infradead.org \
--cc=steven.scholz@imc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox