diff options
| author | Simon Glass <[email protected]> | 2025-10-12 00:43:53 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-14 16:12:50 -0600 |
| commit | f6cd0a36cee32e89449f71ce495dc8f4cd175ad8 (patch) | |
| tree | 59a15327372edccf4ff8068ce6a9fcddacb34257 /boot | |
| parent | b1cc9a53d7ba8b85e77980417242420889273e86 (diff) | |
boot: Improve comments related to global bootmeths
Add a few comments about global bootmeths and first_glob_method
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Reviewed-by: Sam Protsenko <[email protected]>
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/bootflow.c | 1 | ||||
| -rw-r--r-- | boot/bootmeth-uclass.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index d79f303486d..15df7069209 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -344,6 +344,7 @@ static int bootflow_check(struct bootflow_iter *iter, struct bootflow *bflow) struct udevice *dev; int ret; + /* handle global bootmeths if needed */ if (IS_ENABLED(CONFIG_BOOTMETH_GLOBAL) && iter->doing_global) { bootflow_iter_set_dev(iter, NULL, 0); ret = bootmeth_get_bootflow(iter->method, bflow); diff --git a/boot/bootmeth-uclass.c b/boot/bootmeth-uclass.c index 188f6ea1895..bb2dd8447cf 100644 --- a/boot/bootmeth-uclass.c +++ b/boot/bootmeth-uclass.c @@ -204,6 +204,7 @@ int bootmeth_setup_iter_order(struct bootflow_iter *iter, bool include_global) goto err_order; } + /* start with the global bootmeths */ if (IS_ENABLED(CONFIG_BOOTMETH_GLOBAL) && include_global && iter->first_glob_method != -1 && iter->first_glob_method != count) { iter->cur_method = iter->first_glob_method; |
