From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH v3 05/17] dfu: export dfu_list
Date: Wed, 15 Jul 2020 13:33:11 +0900 [thread overview]
Message-ID: <20200715043311.GC24274@laputa> (raw)
In-Reply-To: <24367d2b-ad23-fb82-249c-58016d69a5d3@gmx.de>
Heinrich,
On Fri, Jul 10, 2020 at 06:25:16PM +0200, Heinrich Schuchardt wrote:
> On 10.07.20 03:25, AKASHI Takahiro wrote:
> > This variable will be utilized to enumerate all dfu entities
> > for UEFI capsule firmware update in a later commit.
> >
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > ---
> > drivers/dfu/dfu.c | 2 +-
> > include/dfu.h | 3 +++
> > 2 files changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
> > index a298c2c43999..501a60b34400 100644
> > --- a/drivers/dfu/dfu.c
> > +++ b/drivers/dfu/dfu.c
> > @@ -18,7 +18,7 @@
> > #include <linux/list.h>
> > #include <linux/compiler.h>
> >
> > -static LIST_HEAD(dfu_list);
> > +LIST_HEAD(dfu_list);
> > static int dfu_alt_num;
> > static int alt_num_cnt;
> > static struct hash_algo *dfu_hash_algo;
> > diff --git a/include/dfu.h b/include/dfu.h
> > index 94b0a9e68317..e9af9503d685 100644
> > --- a/include/dfu.h
> > +++ b/include/dfu.h
> > @@ -158,6 +158,9 @@ struct dfu_entity {
> > unsigned int inited:1;
> > };
> >
> > +struct list_head;
> > +extern struct list_head dfu_list;
> > +
> > #ifdef CONFIG_SET_DFU_ALT_INFO
> > /**
> > * set_dfu_alt_info() - set dfu_alt_info environment variable
> >
>
> Why would you need to export this list if the current implementation of
> the dfu command does not need to export it?
Because there is a new 'need', that is enumerating all the definitions
of dfu targets for users, i.e. UEFI subsystem.
> Please, use the existing DFU API functions instead of accessing a
> private member of the implementation.
There is no appropriate API at this moment.
-Takahiro Akashi
> Best regards
>
> Heinrich
>
>
next prev parent reply other threads:[~2020-07-15 4:33 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 1:25 [PATCH v3 00/17] efi_loader: add capsule update support AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 01/17] common: update_tftp: remove unnecessary build check AKASHI Takahiro
2020-07-10 5:38 ` Heinrich Schuchardt
2020-07-10 1:25 ` [PATCH v3 02/17] dfu: add a hidden reverse-dependency on UPDATE_TFTP AKASHI Takahiro
2020-07-10 5:21 ` Heinrich Schuchardt
2020-07-15 5:14 ` AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 03/17] dfu: rename dfu_tftp_write() to dfu_write_by_name() AKASHI Takahiro
2020-07-10 5:45 ` Heinrich Schuchardt
2020-07-15 5:23 ` AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 04/17] common: update: add a generic interface for FIT image AKASHI Takahiro
2020-07-10 16:24 ` Heinrich Schuchardt
2020-07-15 4:28 ` AKASHI Takahiro
2020-07-15 7:07 ` Heinrich Schuchardt
2020-07-16 0:43 ` AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 05/17] dfu: export dfu_list AKASHI Takahiro
2020-07-10 16:25 ` Heinrich Schuchardt
2020-07-15 4:33 ` AKASHI Takahiro [this message]
2020-07-10 1:25 ` [PATCH v3 06/17] efi_loader: add option to initialise EFI subsystem early AKASHI Takahiro
2020-07-10 16:25 ` Heinrich Schuchardt
2020-07-15 4:41 ` AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 07/17] efi_loader: define UpdateCapsule api AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 08/17] efi_loader: capsule: add capsule_on_disk support AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 09/17] efi_loader: capsule: add memory range capsule definitions AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 10/17] efi_loader: capsule: support firmware update AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 11/17] efi_loader: add firmware management protocol for FIT image AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 12/17] dfu: add dfu_write_by_alt() AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 13/17] efi_loader: add firmware management protocol for raw image AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 14/17] cmd: add "efidebug capsule" command AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 15/17] tools: add mkeficapsule command for UEFI capsule update AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 16/17] test/py: add a test for uefi firmware update capsule of FIT image AKASHI Takahiro
2020-07-10 1:25 ` [PATCH v3 17/17] test/py: add a test for uefi firmware update capsule of raw image AKASHI Takahiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200715043311.GC24274@laputa \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox