[PATCH] powerpc: Add a device_initcall to call of_platform_bus_probe on all fsl SoCs

Kim Phillips kim.phillips at freescale.com
Wed Dec 20 10:22:02 EST 2006


On Wed, 20 Dec 2006 10:00:46 +1100
Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:

> On Tue, 2006-12-19 at 15:31 -0600, Kim Phillips wrote:
> > Utilize of_platform_bus_probe() in lieu of manually
> > calling of_platform_device_create for each ucc_geth device
> > (consequently, the QE is added to of_default_bus_ids).
> > 
> > This has been extended outside mpc83xx platform code,
> > since other fsl SoCs are going to need it (thanks Kumar).
> > 
> > Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
> 
> Big NACK

[this implies a nack on the consolidate 83xx files patch]
 
> The effect of this patch is that of_platform_bus_probe() will be
> unconditionally called on anything if a paltform using fsl_soc.c is
> included in the build.

well, that's the whole point.  85xx will soon need this.

> I want that called by the platform code or by something called by the
> platform code for FSL boards, not totally unconditional like that.

it's not characteristic of FSL _boards_ per se.  It's characteristic of FSL powerpc SoC chips, and it resides in a file that will only be built for that case.  This is a legitimate way to support multiple platforms in a single image without incurring multiple device_initcall()s with the same parameter.  I didn't see an appropriate ppc_md. function to use; are you suggesting we add one just for this?  wouldn't that be fsl specific also, but reside in common code?

> Ben.
>  
Kim



More information about the Linuxppc-dev mailing list