Re: [U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-24 Thread Simon Glass
Hi Masahiro, On 23 January 2015 at 22:04, Masahiro YAMADA wrote: > Hi Simon, > > > 2015-01-24 0:50 GMT+09:00 Simon Glass : > >> >> I tried to document the reasoning in the patches, but let me try to >> expand a bit. Hopefully this can provoke further comments / >> improvements. >> >> The main mot

Re: [U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-23 Thread Masahiro YAMADA
Hi Simon, 2015-01-24 0:50 GMT+09:00 Simon Glass : > > I tried to document the reasoning in the patches, but let me try to > expand a bit. Hopefully this can provoke further comments / > improvements. > > The main motivation for me was that buses want to set up the platform > data for their child

Re: [U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-23 Thread Simon Glass
Hi Masahiro, On 23 January 2015 at 02:20, Masahiro Yamada wrote: > Hi Simon, > > > On Mon, 19 Jan 2015 20:12:35 -0700 > Simon Glass wrote: > >> When using allocated platform data, allocate it when we bind the device. >> This makes it possible to fill in this information before the device is >> p

Re: [U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-23 Thread Masahiro Yamada
Hi Simon, On Mon, 19 Jan 2015 20:12:35 -0700 Simon Glass wrote: > When using allocated platform data, allocate it when we bind the device. > This makes it possible to fill in this information before the device is > probed. > > This fits with the platform data model (when not using device tree

[U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-19 Thread Simon Glass
When using allocated platform data, allocate it when we bind the device. This makes it possible to fill in this information before the device is probed. This fits with the platform data model (when not using device tree), since platform data exists at bind-time. Signed-off-by: Simon Glass --- C