On 09/16/2016 04:05 PM, Scott Wood wrote: >>>> I don't see any other platforms doing this. How do the nodes get probed >>>> for them? >>>> >>>> >>>> The answer is I don't know, but this is a common issue with adding >>>> new devices to the device tree in embedded powerpc. The only other >>>> platforms which have gpio-poweroff nodes in their trees are in >>>> arch/arm, and none of those platforms call the probing >>>> function of_platform_bus_probe. I suspect they either probe every >>>> root node, or they somehow construct the match_id. As noted in the >>>> above-referenced commit, putting the nodes under the gpio bus does >>>> not cause them to get probed. This seemed like the best way under >>>> the current corenet code. >>> >>> Well, let's figure out what it is that PPC should be doing to have >>> things work the way it does on ARM. >> >> For all of the devices? Or just these two? > > All of them. If ARM isn't maintaining these annoying lists why should > we have to? :-P
The answer seems to be using of_platform_populate() rather than of_platform_bus_probe(). -Scott