[U-Boot] [PATCH v3 0/5] Devres (Managed Device Resource) for U-Boot
Masahiro Yamada
yamada.masahiro at socionext.com
Thu Jul 23 08:17:03 CEST 2015
This is version 3 of Devres series.
Simon, Albert and I discussed whether we need (and want) to
get this framework in.
Looks like our agreement is that we can add Devres, but
keeping it optional. The DM core part still sticks to the
manual malloc() and free().
With CONFIG_DEVRES disabled, devres APIs fall back to
normal memory allocators, so there is no overhead.
Masahiro Yamada (5):
dm: add DM_FLAG_BOUND flag
devres: introduce Devres (Managed Device Resource) framework
devres: add devm_kmalloc() and friends (managed memory allocators)
devres: make Devres optional with CONFIG_DEVRES
devres: add debug command to dump device resources
drivers/core/Kconfig | 28 +++++
drivers/core/Makefile | 1 +
drivers/core/device-remove.c | 8 ++
drivers/core/device.c | 7 ++
drivers/core/devres.c | 258 ++++++++++++++++++++++++++++++++++++++++
include/dm/device-internal.h | 32 +++++
include/dm/device.h | 273 +++++++++++++++++++++++++++++++++++++++++++
7 files changed, 607 insertions(+)
create mode 100644 drivers/core/devres.c
--
1.9.1
More information about the U-Boot
mailing list