From: Jun Sun <jsun@mvista.com>
To: Cam Mayor <cmayor@iders.ca>
Cc: linux-mtd@lists.infradead.org
Cc: David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH] extend physmap.c to support run-time adding partitions
Date: Wed, 29 Oct 2003 15:13:15 -0800 [thread overview]
Message-ID: <20031029151315.E6588@mvista.com> (raw)
In-Reply-To: <03102916572705.02584@kilauea.iders.ca>; from cmayor@iders.ca on Wed, Oct 29, 2003 at 04:57:27PM -0600
On Wed, Oct 29, 2003 at 04:57:27PM -0600, Cam Mayor wrote:
> On Wednesday 29 October 2003 12:45, Jun Sun wrote:
> > On Wed, Oct 29, 2003 at 11:13:26AM +0000, David Woodhouse wrote:
> > >
> > > That's nicer. Why multiple physmap_add_partition() calls rather than
> > > just a single array passed to physmap_set_map() though?
> >
> > Hmm, currently partition only matters when CONFIG_MTD_PARTITIONS
> > is enabled. I assume this mean sometimes people want to use
> > physmap without partitions. True?
>
> Yes. We have a product that partitions physmap (from the kernel command
> line), but also uses the unpartitioned physmap base device.
>
> ie. physmap on /dev/mtd0
> physmap partitions on /dev/mtd1, /dev/mtd2, etc. sometimes none.
>
Thanks for the data point.
My original comment is really a question to David: do we really
want "partition" to be an argument in phsmap_set_map() even when
CONFIG_MTD_PARTITIONS is _not_ configured?
If David does not like multiple add partition calls, we can
easily introduce another interface function:
physmap_set_partitions(partitions)
So it seems like we have three possibilities in terms
how a board tells physmap driver about the partitions:
1) lumped in physmap_set_map() (as David suggested)
2) calling adding parition multiple times (as in my original
proposal)
3) calling adding partitions in one shot with an array.
I don't like 1) because of CONFIG_MTD_PARTITION issue. But if
David insists, I can modify patch as such.
Jun
prev parent reply other threads:[~2003-10-29 23:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 1:25 [PATCH] extend physmap.c to support run-time adding partitions Jun Sun
[not found] ` <20031023153307.GA11669@wohnheim.fh-wedel.de>
2003-10-23 17:03 ` Jun Sun
2003-10-23 17:31 ` Jörn Engel
2003-10-23 17:43 ` Jun Sun
2003-10-23 18:15 ` Jörn Engel
2003-10-23 20:04 ` Jun Sun
2003-10-23 23:57 ` Jun Sun
2003-10-28 8:22 ` Holger Schurig
2003-10-29 2:33 ` Jun Sun
2003-10-27 18:17 ` Jun Sun
2003-10-28 10:50 ` David Woodhouse
2003-10-29 2:28 ` Jun Sun
2003-10-29 11:13 ` David Woodhouse
2003-10-29 18:45 ` Jun Sun
2003-10-29 19:32 ` Jörn Engel
2003-10-29 23:15 ` Jun Sun
2003-10-29 22:57 ` Cam Mayor
2003-10-29 23:13 ` Jun Sun [this message]
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=20031029151315.E6588@mvista.com \
--to=jsun@mvista.com \
--cc=cmayor@iders.ca \
--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