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

2015-07-25 Thread Masahiro Yamada
2015-07-24 8:20 GMT+09:00 Simon Glass s...@chromium.org: Hi Masahiro, On 23 July 2015 at 00:17, 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

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

2015-07-23 Thread Simon Glass
Hi Masahiro, On 23 July 2015 at 00:17, 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 v3 2/5] devres: introduce Devres (Managed Device Resource) framework

2015-07-23 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