blob: d903ab4c35f5ffef28bb3a4cc9c5224db4eb2511 [file] [log] [blame]
Patrick Williams864cc432023-02-09 14:54:44 -06001From 61f17cf403e2c1108b76556c879aa21945b31dcb Mon Sep 17 00:00:00 2001
Andrew Geisslerea144b032023-01-27 16:03:57 -06002From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
3Date: Wed, 30 Nov 2022 19:14:52 +0000
Patrick Williams864cc432023-02-09 14:54:44 -06004Subject: [PATCH 25/27] efi_setup: discover FF-A bus before raising EFI started
Andrew Geisslerea144b032023-01-27 16:03:57 -06005 event
6
7add FF-A discovery to efi_corstone1000_uboot_efi_started_event()
8
9Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
10Upstream-Status: Pending [Not submitted to upstream yet]
Patrick Williams864cc432023-02-09 14:54:44 -060011Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Andrew Geisslerea144b032023-01-27 16:03:57 -060012---
13 lib/efi_loader/efi_setup.c | 11 +++++++++--
14 1 file changed, 9 insertions(+), 2 deletions(-)
15
16diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c
Patrick Williams864cc432023-02-09 14:54:44 -060017index 08c742edbd12..65bd626e49b4 100644
Andrew Geisslerea144b032023-01-27 16:03:57 -060018--- a/lib/efi_loader/efi_setup.c
19+++ b/lib/efi_loader/efi_setup.c
20@@ -142,9 +142,16 @@ static efi_status_t efi_init_secure_boot(void)
21 static int efi_corstone1000_uboot_efi_started_event(void)
22 {
23 struct ffa_send_direct_data msg = {0};
24+ int ret;
25
26 log_debug("[%s]\n", __func__);
27
28+ ret = ffa_bus_discover(NULL);
29+ if (ret != 0) {
30+ log_err("failure to discover FF-A bus\n");
31+ return ret;
32+ }
33+
34 /*
35 * setting the kernel started event arguments:
36 * setting capsule update interface ID(31:16)
Patrick Williams864cc432023-02-09 14:54:44 -060037@@ -284,9 +291,9 @@ efi_status_t efi_init_obj_list(void)
Andrew Geisslerea144b032023-01-27 16:03:57 -060038 int ffa_ret;
39 ffa_ret = efi_corstone1000_uboot_efi_started_event();
40 if (ffa_ret)
41- debug("[efi_boottime][ERROR]: Failure to notify SE Proxy FW update service\n");
42+ log_err("Failure to notify SE Proxy FW update service\n");
43 else
44- debug("[efi_boottime][INFO]: SE Proxy FW update service notified\n");
45+ debug("SE Proxy FW update service notified\n");
46 #endif
47
48 /* Initialize variable services */
49--
Patrick Williams864cc432023-02-09 14:54:44 -0600502.39.1
Andrew Geisslerea144b032023-01-27 16:03:57 -060051