public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: David Woodhouse <dwmw2@infradead.org>, linux-mtd@lists.infradead.org
Subject: Re: [PATCH,RFC] [MTD] replace MTD_NORFLASH with MTD_GENERIC_TYPE
Date: Tue, 30 May 2006 20:50:17 +0200	[thread overview]
Message-ID: <20060530185017.GG26220@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <20060530152406.GA15284@wohnheim.fh-wedel.de>

On Tue, 30 May 2006 17:24:06 +0200, Jörn Engel wrote:
> 
> This patch is 90% uncontroversial.  The remaining 10% introduce a new
> field to struct mtd_info.  Looks like we need something similar to
> this patch, but probably not identical to it.
> 
> Comments?

/me just noticed how stupid the introduction of the kernel flags was.
Here is another migration path, that will likely receive Artems
objections as well.

Invariant:
In the end, initialization of the wbuf code will be identical for all
devices that require wbuf.  Whether a device requires wbuf is simply
checked by looking at mtd->size.  If mtd->size is greater than 1, we
need wbuf.

Step 1:
Turn MTD_NOR into MTD_GENERIC_TYPE and call the current initialization
for NOR the generic one.

Step 2:
Turn MTD_DATAFLASH into MTD_GENERIC_TYPE, remove its special cased
wbuf initialization and make sure the generic one is usable for
DATAFLASH as well.

Step 3:
Turn MTD_NAND into MTD_GENERIC_TYPE, remove its special cased wbuf
initialization and make sure the generic one is usable for NAND as
well.

Since step 3 isn't that simple, it need to be broken down further.

Step 3a:
Poke tglx to add his double-page-write code.  This should allow
mtd->writesize to go down for NAND flashes.

Step 3b:
Remove the OOB erasemarkers and move them in-band, just as for the
other types.

Step 3c:
See above


Again, Artem won't like this.  But this time I would like to see
better objections than before.  Just to show how silly they are:

	"*you* should prove why it is useless, not me"
That is what these patches are doing.  I remove every existing user of
mtd->type and thereby prove that mtd->type was useless in this
particular case.  When I'm finished and have dealt with every case,
the proof is complete.

	"i want to print a type of flash my JFFS2 file system is
	working on"
Show me the code.  If you have out-of-tree patches that may collide
with my work - tough luck.  I have out-of-tree patches as well and as
long as they are not merged, it is _my_ duty to deal with any breakage
created by other's changes in the kernel.  That has always been the
general rule and for a good reason.

Jörn

-- 
The strong give up and move away, while the weak give up and stay.
-- unknown

  parent reply	other threads:[~2006-05-30 18:50 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 15:24 [PATCH,RFC] [MTD] replace MTD_NORFLASH with MTD_GENERIC_TYPE Jörn Engel
2006-05-30 15:39 ` Artem B. Bityutskiy
2006-05-30 15:40 ` David Woodhouse
2006-05-30 15:50   ` Jörn Engel
2006-05-30 15:55     ` David Woodhouse
2006-05-30 15:59       ` Jörn Engel
2006-05-30 16:01     ` Artem B. Bityutskiy
2006-05-30 16:10       ` Jörn Engel
2006-05-30 16:32         ` Nicolas Pitre
2006-05-30 16:52           ` Artem B. Bityutskiy
2006-05-30 17:45           ` Jörn Engel
2006-05-30 18:13             ` Nicolas Pitre
2006-05-30 18:27               ` Jörn Engel
2006-05-30 16:37         ` Artem B. Bityutskiy
2006-05-30 16:57         ` David Woodhouse
2006-05-30 17:08           ` Jörn Engel
2006-05-30 16:42     ` Nicolas Pitre
2006-05-30 18:50 ` Jörn Engel [this message]
2006-05-30 18:52   ` David Woodhouse
2006-05-30 19:09     ` Jörn Engel
2006-05-30 19:10   ` Nicolas Pitre
2006-05-30 20:06     ` Jörn Engel
2006-05-31  8:09   ` Artem B. Bityutskiy
2006-05-31 14:01     ` Nicolas Pitre
2006-05-31 14:49       ` Artem B. Bityutskiy
2006-05-31 15:59         ` Nicolas Pitre
2006-05-31 16:45           ` Artem B. Bityutskiy
2006-05-31 17:25             ` Nicolas Pitre
2006-06-01  9:03               ` Artem B. Bityutskiy
2006-06-01 11:33                 ` Jörn Engel
2006-06-01 12:57                   ` Artem B. 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=20060530185017.GG26220@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=dwmw2@infradead.org \
    --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