Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-12-04 Thread Stepan Moskovchenko
On 11/20/2012 8:19 AM, Grant Likely wrote: What if instead we added something like OF_ALIASES to the uevent attribute? Then userspace would have access to all the aliases for a device. Heck, even a shell script can parse the uevent attribute. There is also precedence for exporting OF data using

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-12-04 Thread Stepan Moskovchenko
On 11/20/2012 8:19 AM, Grant Likely wrote: What if instead we added something like OF_ALIASES to the uevent attribute? Then userspace would have access to all the aliases for a device. Heck, even a shell script can parse the uevent attribute. There is also precedence for exporting OF data using

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-20 Thread Grant Likely
On Fri, 16 Nov 2012 19:29:09 -0800, Stepan Moskovchenko wrote: > On 11/15/2012 8:10 AM, Grant Likely wrote: > > On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko > > wrote: > > > > Well, why exactly do you want to control the names of devices? Is it so > > that devices match up with what

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-20 Thread Grant Likely
On Fri, 16 Nov 2012 19:29:09 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: On 11/15/2012 8:10 AM, Grant Likely wrote: On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: Well, why exactly do you want to control the names of devices? Is it so

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-16 Thread Stepan Moskovchenko
On 11/15/2012 8:10 AM, Grant Likely wrote: On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-16 Thread Stepan Moskovchenko
On 11/15/2012 8:10 AM, Grant Likely wrote: On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-15 Thread Stepan Moskovchenko
On 11/15/2012 8:10 AM, Grant Likely wrote: On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-15 Thread Grant Likely
On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko wrote: > On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: > > > >> On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring > >> wrote: > >>> On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: > Use the cell-index property to construct names for

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-15 Thread Grant Likely
On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-15 Thread Stepan Moskovchenko
On 11/15/2012 8:10 AM, Grant Likely wrote: On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-12 Thread Stepan Moskovchenko
On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-12 Thread Stepan Moskovchenko
On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-11 Thread Stepan Moskovchenko
> On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring > wrote: >> On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: >>> Use the cell-index property to construct names for platform >>> devices, falling back on the existing scheme of using the >>> device register address if cell-index is not specified.

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-11 Thread Grant Likely
On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring wrote: > On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: >> Use the cell-index property to construct names for platform >> devices, falling back on the existing scheme of using the >> device register address if cell-index is not specified. >> >> The

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-11 Thread Grant Likely
On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-11 Thread Stepan Moskovchenko
On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-10 Thread Rob Herring
On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: > Use the cell-index property to construct names for platform > devices, falling back on the existing scheme of using the > device register address if cell-index is not specified. > > The cell-index property is a more useful device identifier, >

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-10 Thread Rob Herring
On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not specified. The cell-index property is a more useful device identifier,

[RFC] dt/platform: Use cell-index for device naming if available

2012-11-09 Thread Stepan Moskovchenko
Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not specified. The cell-index property is a more useful device identifier, especially in systems containing several numbered instances of

[RFC] dt/platform: Use cell-index for device naming if available

2012-11-09 Thread Stepan Moskovchenko
Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not specified. The cell-index property is a more useful device identifier, especially in systems containing several numbered instances of