Re: [U-Boot] [PATCH v4 2/5] devres: introduce Devres (Managed Device Resource) framework

2015-07-28 Thread Simon Glass
On 28 July 2015 at 12:07, Simon Glass s...@chromium.org wrote: On 25 July 2015 at 06:52, Masahiro Yamada yamada.masah...@socionext.com wrote: In U-Boot's driver model, memory is basically allocated and freed in the core framework. So, low level drivers generally only have to specify the

Re: [U-Boot] [PATCH v4 2/5] devres: introduce Devres (Managed Device Resource) framework

2015-07-28 Thread Simon Glass
On 25 July 2015 at 06:52, Masahiro Yamada yamada.masah...@socionext.com wrote: In U-Boot's driver model, memory is basically allocated and freed in the core framework. So, low level drivers generally only have to specify the size of needed memory with .priv_auto_alloc_size,

[U-Boot] [PATCH v4 2/5] devres: introduce Devres (Managed Device Resource) framework

2015-07-25 Thread Masahiro Yamada
In U-Boot's driver model, memory is basically allocated and freed in the core framework. So, low level drivers generally only have to specify the size of needed memory with .priv_auto_alloc_size, .platdata_auto_alloc_size, etc. Nevertheless, some drivers still need to allocate/free memory on