* MTD OF parser problem
@ 2009-07-07 13:45 Roman Fietze
2009-07-07 17:31 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Roman Fietze @ 2009-07-07 13:45 UTC (permalink / raw)
To: linuxppc-dev
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?
If not, I can submit that tiny patch.
Thanks
Roman
=2D-=20
Roman Fietze Telemotive AG B=FCro M=FChlhausen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MTD OF parser problem
2009-07-07 13:45 MTD OF parser problem Roman Fietze
@ 2009-07-07 17:31 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2009-07-07 17:31 UTC (permalink / raw)
To: Roman Fietze; +Cc: linuxppc-dev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-07 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 13:45 MTD OF parser problem Roman Fietze
2009-07-07 17:31 ` Scott Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox