devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Frank Rowand
	<frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Benjamin Herrenschmidt
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC/PATCH] dt: Add of_device_compatible_match()
Date: Thu, 07 Jul 2016 09:23:47 +0200	[thread overview]
Message-ID: <6164204.UI1kePjIeS@wuerfel> (raw)
In-Reply-To: <1467872962.20157.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.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 <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
> > ---
> > 
> > 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

  parent reply	other threads:[~2016-07-07  7:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-26 22:47 [RFC/PATCH] dt: Add of_device_compatible_match() Benjamin Herrenschmidt
     [not found] ` <1466981246.20278.27.camel-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2016-07-07  6:29   ` Michael Ellerman
     [not found]     ` <1467872962.20157.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2016-07-07  7:23       ` Arnd Bergmann [this message]
2016-07-07 16:45       ` Frank Rowand
2016-07-07 16:42   ` Frank Rowand
     [not found]     ` <577E868E.30702-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-07 22:25       ` Benjamin Herrenschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6164204.UI1kePjIeS@wuerfel \
    --to=arnd-r2ngtmty4d4@public.gmane.org \
    --cc=benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).