From: "Milan P. Stanić" <mps@arvanta.net>
To: Chanho Park <chanho61.park@samsung.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH v2 1/2] dm: event: add EVT_DM_POST_INIT_R event type
Date: Sat, 19 Aug 2023 13:01:49 +0200 [thread overview]
Message-ID: <20230819110149.GC3096@m1> (raw)
In-Reply-To: <20230818051103.2427590-2-chanho61.park@samsung.com>
It works.
On Fri, 2023-08-18 at 14:11, Chanho Park wrote:
> This patch introduces EVT_DM_POST_INIT_R event type for handling hooks
> after relocation.
>
> Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation")
> Suggested-by: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Signed-off-by: Chanho Park <chanho61.park at samsung.com>
Tested-by: Milan P. Stanić <mps@arvanta.net>
> ---
> drivers/core/root.c | 6 ++++--
> include/event.h | 1 +
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/core/root.c b/drivers/core/root.c
> index 6775fb0b6575..79d871ab291a 100644
> --- a/drivers/core/root.c
> +++ b/drivers/core/root.c
> @@ -436,8 +436,10 @@ int dm_init_and_scan(bool pre_reloc_only)
> return ret;
> }
> }
> - if (CONFIG_IS_ENABLED(DM_EVENT) && !(gd->flags & GD_FLG_RELOC)) {
> - ret = event_notify_null(EVT_DM_POST_INIT_F);
> + if (CONFIG_IS_ENABLED(DM_EVENT)) {
> + ret = event_notify_null(gd->flags & GD_FLG_RELOC ?
> + EVT_DM_POST_INIT_R :
> + EVT_DM_POST_INIT_F);
> if (ret)
> return log_msg_ret("ev", ret);
> }
> diff --git a/include/event.h b/include/event.h
> index daf44bf8a83b..bb38ba98e73b 100644
> --- a/include/event.h
> +++ b/include/event.h
> @@ -24,6 +24,7 @@ enum event_t {
>
> /* Events related to driver model */
> EVT_DM_POST_INIT_F,
> + EVT_DM_POST_INIT_R,
> EVT_DM_PRE_PROBE,
> EVT_DM_POST_PROBE,
> EVT_DM_PRE_REMOVE,
> --
> 2.39.2
>
next prev parent reply other threads:[~2023-08-19 11:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230818052645epcas2p47dad71943937119bbfe3652d178d769d@epcas2p4.samsung.com>
2023-08-18 5:11 ` [PATCH v2 0/2] introduce EVT_DM_POST_INIT_R to fix VF2 boot fail Chanho Park
2023-08-18 5:11 ` [PATCH v2 1/2] dm: event: add EVT_DM_POST_INIT_R event type Chanho Park
2023-08-19 11:01 ` Milan P. Stanić [this message]
2023-08-19 20:44 ` Simon Glass
2023-08-21 17:59 ` Roland Ruckerbauer
2023-08-23 13:36 ` Simon Glass
2023-08-21 18:05 ` [PATCH v2 1/2] dm: event: add EVT_DM_POST_INIT_R event type (resend) Roland Ruckerbauer
2023-08-18 5:11 ` [PATCH v2 2/2] riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback Chanho Park
2023-08-19 11:04 ` Milan P. Stanić
2023-08-21 18:02 ` Roland Ruckerbauer
2023-08-21 18:06 ` [PATCH v2 2/2] riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback (resend) Roland Ruckerbauer
2023-08-23 13:36 ` [PATCH v2 2/2] riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback Simon Glass
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=20230819110149.GC3096@m1 \
--to=mps@arvanta.net \
--cc=chanho61.park@samsung.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.