Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-23 Thread Grant Likely
On Thu, 22 May 2014 18:14:38 -0700, Frank Rowand wrote: > On 5/21/2014 6:16 PM, Grant Likely wrote: > > On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand > > wrote: > >> On 5/18/2014 2:27 AM, Grant Likely wrote: > >>> On Fri, 16 May 2014 11:54:44 +0100, Grant Likely > >>> wrote: > On Thu,

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-23 Thread Grant Likely
On Thu, 22 May 2014 18:14:38 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/21/2014 6:16 PM, Grant Likely wrote: On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/18/2014 2:27 AM, Grant Likely wrote: On Fri, 16 May 2014 11:54:44 +0100, Grant

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-22 Thread Frank Rowand
On 5/21/2014 6:16 PM, Grant Likely wrote: > On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand > wrote: >> On 5/18/2014 2:27 AM, Grant Likely wrote: >>> On Fri, 16 May 2014 11:54:44 +0100, Grant Likely >>> wrote: On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand wrote: > On

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-22 Thread Frank Rowand
On 5/21/2014 8:13 PM, Grant Likely wrote: > On Tue, 20 May 2014 19:46:19 -0700, Frank Rowand > wrote: >> On 5/20/2014 7:41 PM, Frank Rowand wrote: >> < snip > >>> I will reply to this email with an additional patch that restores the >>> original behavior. >> < snip > >> From: Frank Rowand >> >>

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-22 Thread Frank Rowand
On 5/21/2014 8:13 PM, Grant Likely wrote: On Tue, 20 May 2014 19:46:19 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/20/2014 7:41 PM, Frank Rowand wrote: snip I will reply to this email with an additional patch that restores the original behavior. snip From: Frank Rowand

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-22 Thread Frank Rowand
On 5/21/2014 6:16 PM, Grant Likely wrote: On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/18/2014 2:27 AM, Grant Likely wrote: On Fri, 16 May 2014 11:54:44 +0100, Grant Likely grant.lik...@linaro.org wrote: On Thu, 15 May 2014 19:51:17 -0700, Frank

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:46:19 -0700, Frank Rowand wrote: > On 5/20/2014 7:41 PM, Frank Rowand wrote: > < snip > > > I will reply to this email with an additional patch that restores the > > original behavior. > < snip > > From: Frank Rowand > > If __of_find_node_by_path() returns parent when the

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand wrote: > On 5/18/2014 2:27 AM, Grant Likely wrote: > > On Fri, 16 May 2014 11:54:44 +0100, Grant Likely > > wrote: > >> On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand > >> wrote: > >>> On 5/13/2014 7:58 AM, Grant Likely wrote: > Make

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Frank Rowand
On 5/21/2014 9:09 AM, Grant Likely wrote: > On Tue, 20 May 2014 19:55:45 -0700, Frank Rowand > wrote: >> On 5/13/2014 7:58 AM, Grant Likely wrote: >> >>> Make of_find_node_by_path() handle aliases as prefixes. To make this < snip > >>> --- >> >>> drivers/of/base.c | 60 >>>

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:55:45 -0700, Frank Rowand wrote: > On 5/13/2014 7:58 AM, Grant Likely wrote: > > > Make of_find_node_by_path() handle aliases as prefixes. To make this > > > work the name search is refactored to search by path component instead > > > of by full string. This should be a

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:55:45 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Frank Rowand
On 5/21/2014 9:09 AM, Grant Likely wrote: On Tue, 20 May 2014 19:55:45 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this snip --- drivers/of/base.c | 60

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:41:22 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/18/2014 2:27 AM, Grant Likely wrote: On Fri, 16 May 2014 11:54:44 +0100, Grant Likely grant.lik...@linaro.org wrote: On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand frowand.l...@gmail.com wrote: On

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-21 Thread Grant Likely
On Tue, 20 May 2014 19:46:19 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/20/2014 7:41 PM, Frank Rowand wrote: snip I will reply to this email with an additional patch that restores the original behavior. snip From: Frank Rowand frank.row...@sonymobile.com If

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/13/2014 7:58 AM, Grant Likely wrote: > Make of_find_node_by_path() handle aliases as prefixes. To make this > work the name search is refactored to search by path component instead > of by full string. This should be a more efficient search, and it makes > it possible to start a search at

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/20/2014 7:41 PM, Frank Rowand wrote: < snip > > I will reply to this email with an additional patch that restores the > original behavior. < snip > From: Frank Rowand If __of_find_node_by_path() returns parent when the remaining portion of the path is "/" then the behavior of

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/18/2014 2:27 AM, Grant Likely wrote: > On Fri, 16 May 2014 11:54:44 +0100, Grant Likely > wrote: >> On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand >> wrote: >>> On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/18/2014 2:27 AM, Grant Likely wrote: On Fri, 16 May 2014 11:54:44 +0100, Grant Likely grant.lik...@linaro.org wrote: On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/20/2014 7:41 PM, Frank Rowand wrote: snip I will reply to this email with an additional patch that restores the original behavior. snip From: Frank Rowand frank.row...@sonymobile.com If __of_find_node_by_path() returns parent when the remaining portion of the path is /

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-20 Thread Frank Rowand
On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This should be a more efficient search, and it makes it possible to start a search at a

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-18 Thread Grant Likely
On Fri, 16 May 2014 11:54:44 +0100, Grant Likely wrote: > On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand > wrote: > > On 5/13/2014 7:58 AM, Grant Likely wrote: > > > Make of_find_node_by_path() handle aliases as prefixes. To make this > > > work the name search is refactored to search by

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-18 Thread Grant Likely
On Fri, 16 May 2014 11:54:44 +0100, Grant Likely grant.lik...@linaro.org wrote: On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this work the name

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-16 Thread Grant Likely
On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand wrote: > On 5/13/2014 7:58 AM, Grant Likely wrote: > > Make of_find_node_by_path() handle aliases as prefixes. To make this > > work the name search is refactored to search by path component instead > > of by full string. This should be a more

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-16 Thread Grant Likely
On Thu, 15 May 2014 19:51:17 -0700, Frank Rowand frowand.l...@gmail.com wrote: On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This should

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-15 Thread Frank Rowand
On 5/13/2014 7:58 AM, Grant Likely wrote: > Make of_find_node_by_path() handle aliases as prefixes. To make this > work the name search is refactored to search by path component instead > of by full string. This should be a more efficient search, and it makes > it possible to start a search at a

Re: [PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-15 Thread Frank Rowand
On 5/13/2014 7:58 AM, Grant Likely wrote: Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This should be a more efficient search, and it makes it possible to start a search at a

[PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-13 Thread Grant Likely
Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This should be a more efficient search, and it makes it possible to start a search at a subnode of a tree. Signed-off-by: David Daney

[PATCH 2/3] of: Make of_find_node_by_path() handle /aliases

2014-05-13 Thread Grant Likely
Make of_find_node_by_path() handle aliases as prefixes. To make this work the name search is refactored to search by path component instead of by full string. This should be a more efficient search, and it makes it possible to start a search at a subnode of a tree. Signed-off-by: David Daney