diff options
| author | Simon Glass <[email protected]> | 2023-05-04 16:50:45 -0600 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2023-05-11 10:25:29 +0800 |
| commit | 55171aedda88d12666e2a1bbc661dea1bec65337 (patch) | |
| tree | 7907d04ffe5835764d28c410e9bff18cff34db63 /doc/develop | |
| parent | 44dc33042f8465764bddeba4e4b362dd5372b74a (diff) | |
dm: Emit the arch_cpu_init_dm() even only before relocation
The original function was only called once, before relocation. The new
one is called again after relocation. This was not the intent of the
original call. Fix this by renaming and updating the calling logic.
With this, chromebook_link64 makes it through SPL.
Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events")
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'doc/develop')
| -rw-r--r-- | doc/develop/event.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/develop/event.rst b/doc/develop/event.rst index e60cbf65691..1c1c9ef7f1b 100644 --- a/doc/develop/event.rst +++ b/doc/develop/event.rst @@ -11,7 +11,7 @@ block device is probed. Rather than using weak functions and direct calls across subsystemss, it is often easier to use an event. -An event consists of a type (e.g. EVT_DM_POST_INIT) and some optional data, +An event consists of a type (e.g. EVT_DM_POST_INIT_F) and some optional data, in `union event_data`. An event spy can be created to watch for events of a particular type. When the event is created, it is sent to each spy in turn. @@ -26,9 +26,9 @@ To declare a spy, use something like this:: /* do something */ return 0; } - EVENT_SPY(EVT_DM_POST_INIT, snow_setup_cpus); + EVENT_SPY(EVT_DM_POST_INIT_F, snow_setup_cpus); -Your function is called when EVT_DM_POST_INIT is emitted, i.e. after driver +Your function is called when EVT_DM_POST_INIT_F is emitted, i.e. after driver model is inited (in SPL, or in U-Boot proper before and after relocation). |
