From: Scott Wood <scottwood@freescale.com>
To: Roman Fietze <roman.fietze@telemotive.de>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: MTD OF parser problem
Date: Tue, 7 Jul 2009 12:31:46 -0500 [thread overview]
Message-ID: <20090707173146.GA25939@b07421-ec1.am.freescale.net> (raw)
In-Reply-To: <200907071545.30121.roman.fietze@telemotive.de>
On Tue, Jul 07, 2009 at 03:45:29PM +0200, Roman Fietze wrote:
> Hallo,
>
> I tried to define my MTD partitions in a device tree as
> documented. The function of_flash_probe() inside teh file physmap_of.c
> never compiled the code below
>
> #ifdef CONFIG_MTD_OF_PARTS
>
> because when the MTD subsystem is compiled as a module I can only find
> CONFIG_MTD_OF_PARTS_MODULE beeing defined somewhere below my build
> directory.
>
> If I change the above define to
>
> #if defined(CONFIG_MTD_OF_PARTS) || defined(CONFIG_MTD_OF_PARTS_MODULE)
>
> everything is fine and MTD partition work as expected.
>
> My fault? Other solution?
That would break if MTD_PHYSMAP_OF (or any other user) is built-in but
MTD_OF_PARTS is a module.
Perhaps there's some way we could hook OF partitions into the normal
partition probing, so we don't have to refer to it by symbol? The main
obstacle would be communicating the device node.
Or we could just disallow MTD_OF_PARTS from being modularized -- like
MTD_PARTITIONS.
-Scott
prev parent reply other threads:[~2009-07-07 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 13:45 MTD OF parser problem Roman Fietze
2009-07-07 17:31 ` Scott Wood [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=20090707173146.GA25939@b07421-ec1.am.freescale.net \
--to=scottwood@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=roman.fietze@telemotive.de \
/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