Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-25 Thread Mario Six
Hi Simon, On Sun, Apr 22, 2018 at 10:13 PM, Simon Glass wrote: > Hi Mario, > > On 18 April 2018 at 02:20, Mario Six wrote: >> Hi Simon, >> >> On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 10 April 2018 at 05:34, Mario Six wrote: Hi Simon, On Fri, M

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-22 Thread Simon Glass
Hi Mario, On 18 April 2018 at 02:20, Mario Six wrote: > Hi Simon, > > On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass wrote: >> Hi Mario, >> >> On 10 April 2018 at 05:34, Mario Six wrote: >>> Hi Simon, >>> >>> On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass wrote: Hi Mario, On 28 Mar

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass wrote: > Hi Mario, > > On 10 April 2018 at 05:34, Mario Six wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 28 March 2018 at 20:37, Mario Six wrote: It's sometimes useful to get

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-12 Thread Simon Glass
Hi Mario, On 10 April 2018 at 05:34, Mario Six wrote: > Hi Simon, > > On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass wrote: >> Hi Mario, >> >> On 28 March 2018 at 20:37, Mario Six wrote: >>> It's sometimes useful to get the device associated with a given ofnode. >>> Implement a function to imple

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass wrote: > Hi Mario, > > On 28 March 2018 at 20:37, Mario Six wrote: >> It's sometimes useful to get the device associated with a given ofnode. >> Implement a function to implement this lookup operation. > > Where would you use this? Can you

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:37, Mario Six wrote: > It's sometimes useful to get the device associated with a given ofnode. > Implement a function to implement this lookup operation. Where would you use this? Can you not use phandles to find the device? Or uclass_get_device_by_ofnode() ? >

[U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-03-28 Thread Mario Six
It's sometimes useful to get the device associated with a given ofnode. Implement a function to implement this lookup operation. Signed-off-by: Mario Six --- drivers/core/ofnode.c | 15 +++ include/dm/ofnode.h | 8 2 files changed, 23 insertions(+) diff --git a/drivers/c