[Skiboot] [PATCH v8 02/10] dt: Add phandle fixup helpers

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Apr 7 09:58:46 AEST 2017

On Fri, 2017-04-07 at 09:31 +1000, Stewart Smith wrote:
> This makes the code look specific to nodes with "events" properties?
> Why? For something sitting in core/device.c, it should be generic.

We don't know what properties may contain phandles. We might need
something like a generic table of properties that may, along with
corresponding "handler" functions that know how to locate the phandles
within the property to fix them up.

I would recommend not using a linked list for the translation table
though or we'll end up O^2 like hell. We should add some simple hash
table primitive to OPAL.


More information about the Skiboot mailing list