Re: [RFC] Add of_path property for all devices with a node

2014-11-18 Thread Benjamin Herrenschmidt
On Tue, 2014-11-18 at 15:18 +, Grant Likely wrote: > >> So not much reactions here .. a bit more on IRC, where Olof > suggested > >> that rather than a file containing a path, we could use a symlink > since > >> the devtree is now in sysfs, so we can do relative links. > > > > +1 on this. That

Re: [RFC] Add of_path property for all devices with a node

2014-11-18 Thread Grant Likely
On Mon, Nov 10, 2014 at 2:06 PM, Rob Herring wrote: > Adding Grant. > > On Sun, Nov 9, 2014 at 11:17 PM, Benjamin Herrenschmidt > wrote: >> On Fri, 2014-11-07 at 17:35 +1100, Benjamin Herrenschmidt wrote: >>> On Fri, 2014-11-07 at 17:33 +1100, Benjamin Herrenschmidt wrote: >>> >>> > So I came up

Re: [RFC] Add of_path property for all devices with a node

2014-11-12 Thread Frank Rowand
On 11/6/2014 10:33 PM, Benjamin Herrenschmidt wrote: > Hey folks ! This is not (yet) a formal patch submission but... > > So I've been annoyed lately with having a bunch of devices such as i2c > eeproms (for use by VPDs, server world !) and other bits and pieces that > I want to be able to identif

Re: [RFC] Add of_path property for all devices with a node

2014-11-10 Thread Benjamin Herrenschmidt
On Mon, 2014-11-10 at 08:06 -0600, Rob Herring wrote: > Adding Grant. Oh, I forgot him ? oops... > > So not much reactions here .. a bit more on IRC, where Olof suggested > > that rather than a file containing a path, we could use a symlink since > > the devtree is now in sysfs, so we can do rela

Re: [RFC] Add of_path property for all devices with a node

2014-11-10 Thread Rob Herring
Adding Grant. On Sun, Nov 9, 2014 at 11:17 PM, Benjamin Herrenschmidt wrote: > On Fri, 2014-11-07 at 17:35 +1100, Benjamin Herrenschmidt wrote: >> On Fri, 2014-11-07 at 17:33 +1100, Benjamin Herrenschmidt wrote: >> >> > So I came up with this patch, >> >> And here is the actual patch, which might

Re: [RFC] Add of_path property for all devices with a node

2014-11-09 Thread Benjamin Herrenschmidt
On Fri, 2014-11-07 at 17:35 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2014-11-07 at 17:33 +1100, Benjamin Herrenschmidt wrote: > > > So I came up with this patch, > > And here is the actual patch, which might help :-) It's pretty trivial > and small... So not much reactions here .. a bit m

Re: [RFC] Add of_path property for all devices with a node

2014-11-06 Thread Benjamin Herrenschmidt
On Fri, 2014-11-07 at 17:33 +1100, Benjamin Herrenschmidt wrote: > So I came up with this patch, And here is the actual patch, which might help :-) It's pretty trivial and small... diff --git a/drivers/base/core.c b/drivers/base/core.c index 20da3ad..dd0ee1b 100644 --- a/drivers/base/core.c +++

[RFC] Add of_path property for all devices with a node

2014-11-06 Thread Benjamin Herrenschmidt
Hey folks ! This is not (yet) a formal patch submission but... So I've been annoyed lately with having a bunch of devices such as i2c eeproms (for use by VPDs, server world !) and other bits and pieces that I want to be able to identify from userspace, and possibly provide additional data about fr