From: Michal Simek <michal.simek@amd.com>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de, git@amd.com, xypron.glpk@gmx.de,
ilias.apalodimas@linaro.org,
Casey Connolly <casey.connolly@linaro.org>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/2] event: Introduce EVT_POST_PREBOOT event
Date: Tue, 17 Mar 2026 13:43:25 +0100 [thread overview]
Message-ID: <2df69237-7ba7-47fa-8980-35bb5aed75fb@amd.com> (raw)
In-Reply-To: <CAFLszTju9o3O23vYBEx1R529b6iBdJL7PB0okd4p4L8m1pZzVQ@mail.gmail.com>
On 3/17/26 13:29, Simon Glass wrote:
> Hi Michal,
>
> On Tue, 10 Mar 2026 at 08:59, Michal Simek <michal.simek@amd.com> wrote:
>>
>> Add a new EVT_POST_PREBOOT event type which is fired in main_loop()
>> after the preboot command has been executed.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> common/main.c | 3 +++
>> include/event.h | 9 +++++++++
>> 2 files changed, 12 insertions(+)
>>
>> diff --git a/common/main.c b/common/main.c
>> index b0b6e74f5d3d..e8b23f3ff293 100644
>> --- a/common/main.c
>> +++ b/common/main.c
>> @@ -19,6 +19,7 @@
>> #include <net.h>
>> #include <version_string.h>
>> #include <efi_loader.h>
>> +#include <event.h>
>>
>> static void run_preboot_environment_command(void)
>> {
>> @@ -53,6 +54,8 @@ void main_loop(void)
>> if (IS_ENABLED(CONFIG_USE_PREBOOT))
>> run_preboot_environment_command();
>>
>> + event_notify_null(EVT_POST_PREBOOT);
>
> This needs error checking if you wish to honour your comment below
> (which I agree with).
ok. I will also fix this one which should check it too.
event_notify_null(EVT_MAIN_LOOP);
M
next prev parent reply other threads:[~2026-03-17 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 14:59 [PATCH 0/2] fwu: Call EFI stack initialization after preboot Michal Simek
2026-03-10 14:59 ` [PATCH 1/2] event: Introduce EVT_POST_PREBOOT event Michal Simek
2026-03-17 12:29 ` Simon Glass
2026-03-17 12:43 ` Michal Simek [this message]
2026-03-10 14:59 ` [PATCH 2/2] fwu: Move boottime checks to EVT_POST_PREBOOT Michal Simek
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=2df69237-7ba7-47fa-8980-35bb5aed75fb@amd.com \
--to=michal.simek@amd.com \
--cc=casey.connolly@linaro.org \
--cc=git@amd.com \
--cc=ilias.apalodimas@linaro.org \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.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