From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [less intrusive PATCH, RFC] don't load physmap if length is zero
Date: Sun, 12 Mar 2006 23:12:48 +0100 [thread overview]
Message-ID: <20060312221248.GA7525@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <20060228191642.GB19811@xi.wantstofly.org>
On Tue, 28 February 2006 20:16:42 +0100, Lennert Buytenhek wrote:
>
> OK, so if the previous patch (which converted physmap into a platform
> driver) was too nonobvious, can we at least apply a patch like this so
> that it's possible to compile in physmap without using it?
>
> This is useful for example on the Technologic Systems TS-72xx boards,
> where some models in the series have NOR flash while others have NAND
> flash, and you'd like to be able to compile a single kernel that works
> on all models. (So for the NOR models, you call physmap_configure at
> run time, while for the NAND models, you initialise the board-specific
> NAND driver (which I shall submit later.))
>
> I'd still prefer the platform driver patch to be applied, but having
> some kind of solution merged is better than no solution at all :-)
Is there a good reason why you didn't just write your own mapping
driver? Most people copy physmap.c, change a few things and use that
driver instead of physmap.c. It does involve many copies of
essentially the same code, but that code is very simple and no sane
kernel should have more than one mapping driver included, so no object
code is duplicated.
Jörn
--
Public Domain - Free as in Beer
General Public - Free as in Speech
BSD License - Free as in Enterprise
Shared Source - Free as in "Work will make you..."
next prev parent reply other threads:[~2006-03-12 22:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 17:04 [PATCH,RFC] convert physmap to platform driver Lennert Buytenhek
2006-02-21 13:51 ` Lennert Buytenhek
2006-03-03 9:09 ` Deepak Saxena
2006-02-28 19:16 ` [less intrusive PATCH,RFC] don't load physmap if length is zero Lennert Buytenhek
2006-03-12 22:12 ` Jörn Engel [this message]
2006-03-13 18:47 ` [less intrusive PATCH, RFC] " Mark Brown
2006-03-13 19:14 ` Jörn Engel
2006-03-14 20:03 ` Mark Brown
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=20060312221248.GA7525@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=buytenh@wantstofly.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