Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-19 Thread Alexander Holler
Am 18.05.2014 16:59, schrieb Grant Likely: Hi Tomasz, Thanks for weighing in on this. Thoughts and comments below. On Sat, 17 May 2014 16:24:19 +0200, Tomasz Figa wrote: registration order. Alexander had to hook into the driver registration patch to get the optimal probe order. For device o

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-18 Thread Grant Likely
Hi Tomasz, Thanks for weighing in on this. Thoughts and comments below. On Sat, 17 May 2014 16:24:19 +0200, Tomasz Figa wrote: > Hi, > > On 14.05.2014 16:05, Grant Likely wrote: > > On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler > > wrote: > >> Use the properties named 'dependencies' in

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-18 Thread Alexander Holler
Am 16.05.2014 13:00, schrieb Grant Likely: On Wed, 14 May 2014 23:10:39 +0200, Alexander Holler wrote: Am 14.05.2014 22:06, schrieb Grant Likely: On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler wrote: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alex

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-17 Thread Tomasz Figa
Hi, On 14.05.2014 16:05, Grant Likely wrote: > On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler > wrote: >> Use the properties named 'dependencies' in binary device tree blobs to build >> a dependency based initialization order for platform devices and drivers. >> >> This is done by building

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-16 Thread Alexander Shiyan
Wed, 14 May 2014 23:10:39 +0200 от Alexander Holler : > Am 14.05.2014 22:06, schrieb Grant Likely: > > On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler > > wrote: > >> Am 14.05.2014 16:05, schrieb Grant Likely: > >>> On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler > >>> wrote: > > >>

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-16 Thread Grant Likely
On Wed, 14 May 2014 23:10:39 +0200, Alexander Holler wrote: > Am 14.05.2014 22:06, schrieb Grant Likely: > > On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler > > wrote: > >> Am 14.05.2014 16:05, schrieb Grant Likely: > >>> On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler > >>> wrote:

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 22:06, schrieb Grant Likely: > On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler > wrote: >> Am 14.05.2014 16:05, schrieb Grant Likely: >>> On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler >>> wrote: >> Hmm, I don't really care if that will be merged. I have no motivation

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Grant Likely
On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler wrote: > Am 14.05.2014 16:05, schrieb Grant Likely: > > On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler > > wrote: > >> Use the properties named 'dependencies' in binary device tree blobs to > >> build > >> a dependency based initializa

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:49, schrieb Alexander Holler: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler wrote: Personally, I think the parts of this patch that manipulate the device registration order is entirely the wrong way to handle it. If anything,

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:05, schrieb Grant Likely: + + if (graph.finished) + return -EINVAL; /* cycle found */ + + /* of_init_print_order(); */ If you wrap of_init_print_order with a #ifdef DEBUG/#else/#endif, then you don't need to comment out the call to of_init_print_order

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler wrote: Use the properties named 'dependencies' in binary device tree blobs to build a dependency based initialization order for platform devices and drivers. This is done by building a directed acy

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Grant Likely
On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler wrote: > Use the properties named 'dependencies' in binary device tree blobs to build > a dependency based initialization order for platform devices and drivers. > > This is done by building a directed acyclic graph using an adjacency list > a

[RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-12 Thread Alexander Holler
Use the properties named 'dependencies' in binary device tree blobs to build a dependency based initialization order for platform devices and drivers. This is done by building a directed acyclic graph using an adjacency list and doing a topological sort to retrieve the order in which devices/drive