From: Artem Bityutskiy <dedekind1@gmail.com>
To: "THOMSON, Adam (Adam)" <adam.thomson@alcatel-lucent.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: RE: [PATCH v2] nand: nand_base: Always initialise oob_poi before writing OOB data
Date: Fri, 27 May 2011 12:30:54 +0300 [thread overview]
Message-ID: <1306488654.2922.4.camel@localhost> (raw)
In-Reply-To: <E14CAA9D00C5044EACE0C59FC2A1C7F5059A95632E@FRMRSSXCHMBSC1.dc-m.alcatel-lucent.com>
On Thu, 2011-05-26 at 17:15 +0200, THOMSON, Adam (Adam) wrote:
> The reason I mentioned 2.6.31 was because it was the earliest kernel I
> had been using when I witnessed this issue. Having looked at the commit
> you mentioned, I have to agree that's where the problem first appeared.
> Do you want me to add the CC with [2.6.20+] (assume that should be part
> of the patch text in the mail)?
Yes, please, add the CC to -stable.
> > 2. I think the right place fir this memset is
> > 'nand_fill_oob()'. But in this case the first memset from
> > 'nand_do_write_oob()' has to be removed.
> >
>
> Yes, that makes sense. Did consider that afterwards. Will update
> Accordingly.
Thanks!
> No that's fine. Shouldn't be too much to do. Do you want both
> the stable patch and the proper fix submitted around the same
> time,
Yes, please.
> or are you happy to get the initial fix in first, and follow up
> with the more complete tidying of that code?
Please, send all together. It is anyway too late to merge it to 2.6.40,
so there is no rush.
> Also am guessing
> the complete patch should be based on the latest and greatest
> Kernel (2.6.39)?
Yes, of course, although the latest kernel is this one:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
But it is OK to _test_ it an older kernel, though.
> Having looked briefly at the read side code in nand_base.c,
> it does look like it should be enough to remove the second
> memset and leave the read side code as is, but will examine
> it more thoroughly before I post a patch.
Thanks a lot. When you send a patch, please, also explicitly tell
whether you tested it on some HW or only compile-tested.
Thanks!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-05-27 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 10:25 [PATCH v2] nand: nand_base: Always initialise oob_poi before writing OOB data THOMSON, Adam (Adam)
2011-05-26 8:01 ` Artem Bityutskiy
2011-05-26 15:15 ` THOMSON, Adam (Adam)
2011-05-27 9:30 ` Artem Bityutskiy [this message]
2011-06-07 11:06 ` Artem Bityutskiy
2011-06-07 13:00 ` THOMSON, Adam (Adam)
2011-06-07 13:00 ` Artem Bityutskiy
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=1306488654.2922.4.camel@localhost \
--to=dedekind1@gmail.com \
--cc=adam.thomson@alcatel-lucent.com \
--cc=linux-mtd@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).