Thread (1 message) 1 message, 1 author, 2016-07-07

Re: [RFC/PATCH] dt: Add of_device_compatible_match()

From: Arnd Bergmann <hidden>
Date: 2016-07-07 07:23:47

On Thursday, July 7, 2016 4:29:22 PM CEST Michael Ellerman wrote:
On Mon, 2016-06-27 at 08:47 +1000, Benjamin Herrenschmidt wrote:
quoted
This provides an equivalent of of_fdt_match() for non-flat trees.

This is more practical than matching an array of of_device_id structs
when converting a bunch of existing users of of_fdt_match().

Signed-off-by: Benjamin Herrenschmidt <redacted>
---

This is a pre-requisite for some work I'm doing to move the platform
identification in arch/powerpc until after we have unflattened the
device-tree. Rewriting all those lists as of_device_id's would be
significantly cumbersome.

Note: untested other than it compiles. I want an agreement on the
interface ASAP since the conversion of all the platforms is a burden
I'd like to avoid doing twice.

Any comments on this?

We need it as a pre-req for a powerpc series, so unless anyone yells I'll merge
it via there.
I like the idea, we already have a number of drivers that would benefit
from this.

	Arnd

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help