summaryrefslogtreecommitdiff
path: root/common/bloblist.c
diff options
context:
space:
mode:
authorRaymond Mao <raymond.mao@linaro.org>2025-02-19 16:02:20 -0800
committerTom Rini <trini@konsulko.com>2025-02-19 18:49:36 -0600
commit03a76b1a737fc9cf511aa7520999968ec3d2fd78 (patch)
tree5830ed56ee2bfdab347108c90fe0144bb806a08c /common/bloblist.c
parent6799f09069f402a33c9cb202b71e144497bd9b7a (diff)
bloblist: kconfig for mandatory incoming standard passage
In previous commit, incoming standard passage is used by default when initializing the bloblist, so explicitly BLOBLIST_PASSAGE is no more needed. Rename it as BLOBLIST_PASSAGE_MANDATORY to determine the behaviors when an incoming transfer list does not exist or is invalid. When it is selected, incoming standard passage is mandatory and U-Boot will report an error when a valid incoming transfer list is missing. Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Diffstat (limited to 'common/bloblist.c')
-rw-r--r--common/bloblist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/bloblist.c b/common/bloblist.c
index be05f8082ff..fb0e5af5f3a 100644
--- a/common/bloblist.c
+++ b/common/bloblist.c
@@ -513,6 +513,13 @@ int bloblist_init(void)
*/
bool from_addr = fixed && !xpl_is_first_phase();
+ /*
+ * If Firmware Handoff is mandatory but no transfer list is
+ * observed, report it as an error.
+ */
+ if (IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY))
+ return -ENOENT;
+
ret = -ENOENT;
if (xpl_prev_phase() == PHASE_TPL &&