powerpc_flash_init(), wtf!?

Segher Boessenkool segher at kernel.crashing.org
Fri May 4 03:25:55 EST 2007


>>>     BTW, is it legal/appropriate to specify device (not bus) types 
>>> for
>>> of_platform_bus_probe()?
>
>> In almost all cases you should probe on "name"/"compatible",
>
>    Probing on name is not a good idea, since those are mostly generic.

The OF standard tells you to probe on "name" before
probing on "compatible".  If the "name" in a certain
node is generic, that doesn't harm at all, since you
probe for the more specific names only.

>> and not use "device_type" at all.
>
>    Heh, SPARC device trees I saw seem to not have this "useless" prop 
> at all. :-)

Well they have it in the nodes for which they _should_
have it, but not anywhere else no.


Segher




More information about the Linuxppc-dev mailing list