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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxxxxxxx>
> > ---
> > 
> > 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux