[RFC v2 12/20] dm: add tag support

AKASHI Takahiro takahiro.akashi at linaro.org
Tue Dec 14 08:05:32 CET 2021


On Mon, Dec 13, 2021 at 05:51:45AM -0700, Simon Glass wrote:
> Hi Takahiro,
> 
> On Thu, 9 Dec 2021 at 23:58, AKASHI Takahiro <takahiro.akashi at linaro.org> wrote:
> >
> > With dm-tag feature, any U-Boot subsystem is allowed to associate
> > arbitrary number of data with a particular udevice. This can been
> > see as expanding "struct udevice" without modifying the definition.
> >
> > As a first user, UEFI subsystem makes use of tags to associate
> > an efi_disk object with a block device.
> >
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
> > ---
> >  drivers/core/Makefile |   2 +-
> >  drivers/core/tag.c    | 162 ++++++++++++++++++++++++++++++++++++++++++
> >  include/dm/tag.h      |  76 ++++++++++++++++++++
> >  3 files changed, 239 insertions(+), 1 deletion(-)
> >  create mode 100644 drivers/core/tag.c
> >  create mode 100644 include/dm/tag.h
> 
> Needs comments and a test, but looks good.
> 
> How does the list itself get inited?

Isn't LIST_HEAD(dmtag_list) enough?

-Takahiro Akashi


> Regards,
> Simon


More information about the U-Boot mailing list