From: Artem Bityutskiy <dedekind@infradead.org>
To: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: linux-mtd@lists.infradead.org, Jamie Lokier <jamie@shareable.org>
Subject: Re: [RFC/PATCH] flash_eraseall: extra care if NOR flash is not BIT_WRITEABLE
Date: Fri, 27 Mar 2009 07:55:32 +0200 [thread overview]
Message-ID: <1238133332.3321.98.camel@localhost.localdomain> (raw)
In-Reply-To: <20090326154142.GA15963@Chamillionaire.breakpoint.cc>
On Thu, 2009-03-26 at 16:41 +0100, Sebastian Andrzej Siewior wrote:
> * Jamie Lokier | 2009-03-26 13:44:18 [+0000]:
>
> >Artem Bityutskiy wrote:
> >> It sounds wrong to me to make flash_eraseall depend on how JFFS2 is
> >> compiled...
> >
> >It sounds wrong to me as well.
> >
> >What if you're running flash_eraseall on one kernel - it might not
> >even have JFFS2 - and then use the flash later with a different kernel
> >with a different setting.
>
> I'm sorry. That is actually my point. The layout of the cleanmarker
> (which are used only by JFFS2) depends on a specific kernel switch in
> case of NOR flash which is not BIT_WRITEABLE and userland can't know
> that.
> I've sent a patch to remove the -j option because the generated
> cleanmaker *may* be wrong. Artem replied that he would like to see this
> fixed.
> So here is an attempt to fix this: black listed ubi & data flash but I
> dunno how fix the NOR case where does not have BIT_WRITEABLE bit. A
> commandline switch for those who know what they do?
> Why don't rip out -j and let the kernel create clean marker if it
> needs it?
I looked into your patch closer, and there is no such dependency
actually. Now it looks fine for me.
I can apply them if there are not complaints. But how you have
tested them? I would not want to break 'flash_eraseall' once again :-)
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
next prev parent reply other threads:[~2009-03-27 5:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 22:42 mtd-utils/flash_eraseall: tiny cleanup Sebastian Andrzej Siewior
2009-03-23 22:42 ` [PATCH] flash_eraseall: create two functions from existing code Sebastian Andrzej Siewior
2009-03-23 22:42 ` [PATCH] flash_eraseall: only add cleanmarkers on known flashtypes Sebastian Andrzej Siewior
2009-03-24 6:02 ` Artem Bityutskiy
2009-03-24 6:03 ` Artem Bityutskiy
2009-03-23 22:42 ` [RFC/PATCH] flash_eraseall: extra care if NOR flash is not BIT_WRITEABLE Sebastian Andrzej Siewior
2009-03-24 6:05 ` Artem Bityutskiy
2009-03-24 8:55 ` Sebastian Andrzej Siewior
2009-03-25 6:33 ` Artem Bityutskiy
2009-03-26 13:44 ` Jamie Lokier
2009-03-26 15:41 ` Sebastian Andrzej Siewior
2009-03-26 15:54 ` Ricard Wanderlof
2009-04-05 19:43 ` Sebastian Andrzej Siewior
2009-04-06 8:09 ` Ricard Wanderlof
2009-03-27 5:55 ` Artem Bityutskiy [this message]
2009-04-05 20:07 ` Sebastian Andrzej Siewior
2009-04-06 9:29 ` Artem Bityutskiy
2009-04-06 9:32 ` Artem Bityutskiy
2009-04-10 12:30 ` Artem Bityutskiy
2009-08-06 14:58 ` Sebastian Andrzej Siewior
2009-08-09 5:20 ` 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=1238133332.3321.98.camel@localhost.localdomain \
--to=dedekind@infradead.org \
--cc=jamie@shareable.org \
--cc=linux-mtd@lists.infradead.org \
--cc=sebastian@breakpoint.cc \
/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