Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-20 Thread Grant Likely
On Mon, 17 Mar 2014 16:20:03 +0100, Jean-Jacques Hiblot wrote: > 2014-03-17 15:24 GMT+01:00 Grant Likely : > > On Mon, 17 Mar 2014 12:07:37 +0100, Jean-Jacques Hiblot > > wrote: > >> Hi Grant, > >> > >> Sorry for the delay, I was having nice vacations. > >> > >> 2014-03-08 8:37 GMT+01:00 Grant

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-17 Thread Jean-Jacques Hiblot
2014-03-17 15:24 GMT+01:00 Grant Likely : > On Mon, 17 Mar 2014 12:07:37 +0100, Jean-Jacques Hiblot > wrote: >> Hi Grant, >> >> Sorry for the delay, I was having nice vacations. >> >> 2014-03-08 8:37 GMT+01:00 Grant Likely : >> > On Fri, 21 Feb 2014 14:18:40 +0100, Jean-Jacques Hiblot >> > wrot

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-17 Thread Grant Likely
On Mon, 17 Mar 2014 12:07:37 +0100, Jean-Jacques Hiblot wrote: > Hi Grant, > > Sorry for the delay, I was having nice vacations. > > 2014-03-08 8:37 GMT+01:00 Grant Likely : > > On Fri, 21 Feb 2014 14:18:40 +0100, Jean-Jacques Hiblot > > wrote: > >> The goal of this patch is to allow drivers

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-17 Thread Jean-Jacques Hiblot
Hi Grant, Sorry for the delay, I was having nice vacations. 2014-03-08 8:37 GMT+01:00 Grant Likely : > On Fri, 21 Feb 2014 14:18:40 +0100, Jean-Jacques Hiblot > wrote: >> The goal of this patch is to allow drivers to be probed even if at the time >> of >> the DT parsing some of their ressource

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-08 Thread Russell King - ARM Linux
On Sat, Mar 08, 2014 at 07:37:58AM +, Grant Likely wrote: > I believe we already talked about the above test. This function must > only process devices created by of_platform_populate(). Merely checking > the of_node pointer is not a sufficient test because there are other > paths in the kernel

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-08 Thread Grant Likely
On Thu, 27 Feb 2014 17:43:15 +0100, Jean-Jacques Hiblot wrote: > Hi Grant, > > 2014-02-21 17:22 GMT+01:00 Jean-Jacques Hiblot : > > Hi Grygorii, > > > > 2014-02-21 16:37 GMT+01:00 Strashko, Grygorii : > >> Hi Jean-Jacques, > >> > >> Sorry for top posting. > >> > >> As I know, there have been se

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-08 Thread Grant Likely
On Fri, 21 Feb 2014 14:18:40 +0100, Jean-Jacques Hiblot wrote: > The goal of this patch is to allow drivers to be probed even if at the time of > the DT parsing some of their ressources are not available yet. Hi Jean-Jacques [...] > +int of_platform_device_prepare(struct platform_device *dev) >

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-27 Thread Jean-Jacques Hiblot
Hi Grant, 2014-02-21 17:22 GMT+01:00 Jean-Jacques Hiblot : > Hi Grygorii, > > 2014-02-21 16:37 GMT+01:00 Strashko, Grygorii : >> Hi Jean-Jacques, >> >> Sorry for top posting. >> >> As I know, there have been several attempts to solve the same problem >> already:) >> [1] https://lkml.org/lkml/201

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-27 Thread Ludovic Desroches
On Fri, Feb 21, 2014 at 02:18:40PM +0100, Jean-Jacques Hiblot wrote: > The goal of this patch is to allow drivers to be probed even if at the time of > the DT parsing some of their ressources are not available yet. > > In the current situation, the resource of a platform device are filled from >

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-21 Thread Jean-Jacques Hiblot
Hi Grygorii, 2014-02-21 16:37 GMT+01:00 Strashko, Grygorii : > Hi Jean-Jacques, > > Sorry for top posting. > > As I know, there have been several attempts to solve the same problem > already:) > [1] https://lkml.org/lkml/2013/9/18/216 > [2] https://lkml.org/lkml/2013/11/22/520 > [3] https://lkml

RE: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-21 Thread Strashko, Grygorii
Hi Jean-Jacques, Sorry for top posting. As I know, there have been several attempts to solve the same problem already:) [1] https://lkml.org/lkml/2013/9/18/216 [2] https://lkml.org/lkml/2013/11/22/520 [3] https://lkml.org/lkml/2014/1/8/240 There are some questions related to your approach: 1) H

[PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-21 Thread Jean-Jacques Hiblot
The goal of this patch is to allow drivers to be probed even if at the time of the DT parsing some of their ressources are not available yet. In the current situation, the resource of a platform device are filled from the DT at the time the device is created (of_device_alloc()). The drawbackof thi