From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC/PATCH] dt: Add of_device_compatible_match() Date: Thu, 07 Jul 2016 09:23:47 +0200 Message-ID: <6164204.UI1kePjIeS@wuerfel> References: <1466981246.20278.27.camel@kernel.crashing.org> <1467872962.20157.1.camel@ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1467872962.20157.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Michael Ellerman Cc: Rob Herring , Frank Rowand , Benjamin Herrenschmidt , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org 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: > > 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 > > --- > > > > 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