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 yamad...@jp.panasonic.com wrote: Hi Simon, 2015-01-24 0:50 GMT+09:00 Simon Glass s...@chromium.org: I tried to document the reasoning in the patches, but let me try to expand a bit. Hopefully this can provoke further comments /

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 s...@chromium.org 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

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 s...@chromium.org: 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

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 yamad...@jp.panasonic.com wrote: Hi Simon, On Mon, 19 Jan 2015 20:12:35 -0700 Simon Glass s...@chromium.org wrote: When using allocated platform data, allocate it when we bind the device. This makes it possible to fill in this

[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