Re: [RFC/PATCH] drivers/of/platform: Add powerpc 4xx embedded busses to default list

From: Benjamin Herrenschmidt
Date: Tue Sep 05 2017 - 18:00:29 EST


On Tue, 2017-09-05 at 09:25 -0500, Rob Herring wrote:
> > So in the meantime, I'm thinking adding some kind of runtime way
> > of disabling this default populate. Would you be ok with that ?
> >
> > Something like:
> >
> > bool arch_wants_of_platform_defaults(void)
> >
> > With a weak implementation returning true.
>
> That seems fine. The intention was that you can call
> of_platform_default_populate multiple times with arch specific match
> lists and the default. There could be ordering issues both with
> initcall levels and device creation ordering.

Right but I want to skip the default completely on things like old macs
because they manually create their own cherry-picks and I worry about
conflicts here. Also Apple has history of random crap in the root of
the DT.

Cheers,
Ben.