All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: linuxppc-dev <Linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] powerpc: Create "rom" (MTD) device prpmc2800
Date: Thu, 14 Jun 2007 14:29:07 +1000	[thread overview]
Message-ID: <20070614042906.GC11177@localhost.localdomain> (raw)
In-Reply-To: <791ab8b82c5b5d2b3ae4827a891a43ea@kernel.crashing.org>

On Wed, Jun 13, 2007 at 11:37:42AM +0200, Segher Boessenkool wrote:
> >> How do non-device-tree MTD users handle this?
> >
> > Invidual, board-specific map files with hardcoded partition tables.
> 
> That's what I was afraid of.  Sigh.
> 
> > See drivers/mtd/maps/ebony.c for example.
> 
> [/me looks...]  Oh horror.
> 
> > Hence my view of the device
> > tree as a preferable option.
> 
> I think some binary partition table format that can be
> used by _all_ MTD consumers should be defined.  How
> that table should be communicated to the kernel in the
> device tree case we can discuss later, then.  Maybe
> something as simple as storing it in flash, and have a
> "partition-table-offset" property or something like that.
> 
> This is something the MTD people will have to buy into
> of course.

I tought I saw some config option implying that there already existed
an on-device partition table format for flashes.  Doesn't help us for
existing boards which don't expect such a setup, of course.

Incidentally, with either the partitions-described-by-properties, or
the revised more-flexible partitions-described-by-subnodes format, I'm
not seeing it as required that the whole of the flash address space be
described.  So it would certainly be possible to *only* describe the
sections of the flash used by firmware.  But I'm suggesting that we
optionally allow other partitions to be described for boards / systems
which have strong conventions about how the flash is divided and where
we don't have any other way of recording the partition layout short of
hardcoding.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

  reply	other threads:[~2007-06-14  4:29 UTC|newest]

Thread overview: 106+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01 23:20 [PATCH] powerpc: Create "rom" (MTD) device prpmc2800 Mark A. Greer
2007-06-02  8:46 ` Segher Boessenkool
2007-06-04 20:56 ` Mark A. Greer
2007-06-05 20:35   ` Sergei Shtylyov
2007-06-05 21:11     ` Mark A. Greer
2007-06-06 12:41       ` Sergei Shtylyov
2007-06-06 12:41         ` Sergei Shtylyov
2007-06-07 15:08         ` David Woodhouse
2007-06-07 15:08           ` David Woodhouse
2007-06-06  2:39   ` David Gibson
2007-06-07 13:30     ` Segher Boessenkool
2007-06-12  4:42       ` David Gibson
2007-06-12 10:50         ` Segher Boessenkool
2007-06-13  6:12           ` David Gibson
2007-06-13  9:13             ` Segher Boessenkool
2007-06-13  9:19               ` David Gibson
2007-06-13  9:37                 ` Segher Boessenkool
2007-06-14  4:29                   ` David Gibson [this message]
2007-06-14  8:00                     ` Segher Boessenkool
2007-06-14 12:39                     ` Sergei Shtylyov
2007-06-14 13:20                       ` Segher Boessenkool
2007-06-14 12:48           ` Sergei Shtylyov
2007-06-14 13:18             ` Segher Boessenkool
2007-06-14 12:50         ` Sergei Shtylyov
2007-06-14 13:43           ` Segher Boessenkool
  -- strict thread matches above, loose matches on Subject: below --
2007-06-02  4:30 Milton Miller
2007-06-02  7:39 ` Benjamin Herrenschmidt
2007-06-03 16:10   ` Sergei Shtylyov
2007-06-03 17:36     ` Segher Boessenkool
2007-06-03 18:03       ` Sergei Shtylyov
2007-06-03 18:03         ` Sergei Shtylyov
2007-06-03 18:25         ` Segher Boessenkool
2007-06-03 18:25           ` Segher Boessenkool
2007-06-03 18:36           ` Sergei Shtylyov
2007-06-03 18:36             ` Sergei Shtylyov
2007-06-03 18:46             ` Segher Boessenkool
2007-06-03 18:46               ` Segher Boessenkool
2007-06-03 19:16               ` Sergei Shtylyov
2007-06-03 19:16                 ` Sergei Shtylyov
2007-06-03 21:04         ` Benjamin Herrenschmidt
2007-06-03 21:04           ` Benjamin Herrenschmidt
2007-06-04 12:34           ` Sergei Shtylyov
2007-06-04 12:34             ` Sergei Shtylyov
2007-06-04 14:37             ` Segher Boessenkool
2007-06-04 14:37               ` Segher Boessenkool
2007-06-04 14:49               ` Sergei Shtylyov
2007-06-04 14:49                 ` Sergei Shtylyov
2007-06-07 14:53           ` David Woodhouse
2007-06-07 14:53             ` David Woodhouse
2007-06-07 15:49             ` Segher Boessenkool
2007-06-07 15:49               ` Segher Boessenkool
2007-06-07 14:47         ` David Woodhouse
2007-06-07 14:47           ` David Woodhouse
2007-06-07 15:32           ` Segher Boessenkool
2007-06-07 15:32             ` Segher Boessenkool
2007-06-02  8:53 ` Segher Boessenkool
2007-06-03 16:22   ` Sergei Shtylyov
2007-06-03 17:40     ` Segher Boessenkool
2007-06-03 18:31       ` Sergei Shtylyov
2007-06-03 18:44         ` Segher Boessenkool
2007-06-03 19:13           ` Sergei Shtylyov
2007-06-03 19:56             ` Segher Boessenkool
2007-06-03 20:26               ` Sergei Shtylyov
2007-06-04  8:07                 ` Segher Boessenkool
2007-06-04 13:34                   ` Sergei Shtylyov
2007-06-07 15:00                 ` David Woodhouse
2007-06-07 15:00                   ` David Woodhouse
2007-06-07 15:55                   ` Segher Boessenkool
2007-06-07 15:55                     ` Segher Boessenkool
2007-06-07 16:05                     ` David Woodhouse
2007-06-07 16:05                       ` David Woodhouse
2007-06-07 16:46                       ` Segher Boessenkool
2007-06-07 16:46                         ` Segher Boessenkool
2007-06-12  4:44                     ` David Gibson
2007-06-12 10:53                       ` Segher Boessenkool
2007-06-13  3:16                         ` David Gibson
2007-06-13  5:05                           ` Segher Boessenkool
2007-06-13  6:11                             ` David Gibson
2007-06-13  9:10                               ` Segher Boessenkool
2007-06-15  4:12                                 ` David Gibson
2007-06-15 11:22                                   ` Segher Boessenkool
2007-06-15  4:14                     ` David Gibson
2007-06-15  8:42                       ` Segher Boessenkool
2007-06-15  8:47                         ` David Woodhouse
2007-06-15  8:59                           ` Segher Boessenkool
2007-06-03 21:12     ` Benjamin Herrenschmidt
2007-06-03 21:12       ` Benjamin Herrenschmidt
2007-06-04  8:11       ` Segher Boessenkool
2007-06-04  8:11         ` Segher Boessenkool
2007-06-04 13:16         ` Sergei Shtylyov
2007-06-04 13:16           ` Sergei Shtylyov
2007-06-04 12:41       ` Sergei Shtylyov
2007-06-04 12:41         ` Sergei Shtylyov
2007-06-04 14:49         ` Segher Boessenkool
2007-06-04 14:49           ` Segher Boessenkool
2007-06-04 15:54           ` Sergei Shtylyov
2007-06-04 15:54             ` Sergei Shtylyov
2007-06-03 17:29 ` Sergei Shtylyov
2007-06-03 17:45   ` Segher Boessenkool
2007-06-03 18:18     ` Sergei Shtylyov
2007-06-03 18:43       ` Segher Boessenkool
2007-06-03 18:59         ` Sergei Shtylyov
2007-06-03 19:48           ` Segher Boessenkool
2007-06-03 20:10             ` Sergei Shtylyov
2007-06-04  8:02               ` Segher Boessenkool
2007-06-04 19:40 ` Mark A. Greer

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=20070614042906.GC11177@localhost.localdomain \
    --to=david@gibson.dropbear.id.au \
    --cc=Linuxppc-dev@ozlabs.org \
    --cc=segher@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.