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

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Dec 20 11:19:46 EST 2006


On Tue, 2006-12-19 at 18:10 -0600, Scott Wood wrote:
> Benjamin Herrenschmidt wrote:
> > What cores do those chip use ? Any reason why one couldn't build a
> > kernel that boots those chips -and- chrp,pmac,etc... in one image ?
> > 
> > If that is the case, then your initcall will incorrectly be called on
> > platforms that don't need it.
> 
> It won't do anything, though, unless it finds a node that matches 
> of_default_bus_ids.  Are there any platforms on which "soc" nodes (or 
> others in the default list) shouldn't be probed?  If not, perhaps make a 
> generic initcall to of_platform_bus_probe(), so that it won't be called 
> multiple times by different SoC types that are in the same kernel?

There is none right now that shouldn't be probed but I haven't been too
happy about having a default list in the first place (despite me writing
that code :-)

> Otherwise, perhaps the SoCs could be given "fsl-soc" in their compatible 
> field, and have fsl_publish_devices() pass that as a match struct.

Might be a better option.

I'd rather keep things well separate for now.

Ben.





More information about the Linuxppc-dev mailing list