blob: 6c177864ffa398db9d37297226e5154899231c3e [file] [log] [blame]
Andrew Geisslerea144b032023-01-27 16:03:57 -06001From de5994cda7a35317f12dc1cedb28cae1b932283a Mon Sep 17 00:00:00 2001
2From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
3Date: Wed, 30 Nov 2022 19:14:52 +0000
4Subject: [PATCH 25/25] efi_setup: discover FF-A bus before raising EFI started
5 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]
11---
12 lib/efi_loader/efi_setup.c | 11 +++++++++--
13 1 file changed, 9 insertions(+), 2 deletions(-)
14
15diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c
16index 63329bbff8..cf8abe3af0 100644
17--- a/lib/efi_loader/efi_setup.c
18+++ b/lib/efi_loader/efi_setup.c
19@@ -142,9 +142,16 @@ static efi_status_t efi_init_secure_boot(void)
20 static int efi_corstone1000_uboot_efi_started_event(void)
21 {
22 struct ffa_send_direct_data msg = {0};
23+ int ret;
24
25 log_debug("[%s]\n", __func__);
26
27+ ret = ffa_bus_discover(NULL);
28+ if (ret != 0) {
29+ log_err("failure to discover FF-A bus\n");
30+ return ret;
31+ }
32+
33 /*
34 * setting the kernel started event arguments:
35 * setting capsule update interface ID(31:16)
36@@ -304,9 +311,9 @@ efi_status_t efi_init_obj_list(void)
37 int ffa_ret;
38 ffa_ret = efi_corstone1000_uboot_efi_started_event();
39 if (ffa_ret)
40- debug("[efi_boottime][ERROR]: Failure to notify SE Proxy FW update service\n");
41+ log_err("Failure to notify SE Proxy FW update service\n");
42 else
43- debug("[efi_boottime][INFO]: SE Proxy FW update service notified\n");
44+ debug("SE Proxy FW update service notified\n");
45 #endif
46
47 /* Initialize variable services */
48--
492.17.1
50