aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2018-12-18 16:07:57 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2018-12-18 17:32:37 +0100
commitcbc451622e5830da2503d386eaa35b618b610dcb (patch)
tree22dc1d47b1adfe69baab6820fa42c29488fdd698 /lib
parent844b3629240275673d1611ab72f47ba7095b83a3 (diff)
downloadtf-a-tests-cbc451622e5830da2503d386eaa35b618b610dcb.tar.gz
Flush the UART before entering suspend mode
Change-Id: I75fa2b864d9229950e53f5b8a46e8e6078d4780d Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/power_management/suspend/tftf_suspend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/power_management/suspend/tftf_suspend.c b/lib/power_management/suspend/tftf_suspend.c
index 75c2ade0..d6c989af 100644
--- a/lib/power_management/suspend/tftf_suspend.c
+++ b/lib/power_management/suspend/tftf_suspend.c
@@ -6,6 +6,7 @@
#include <arch_helpers.h>
#include <arm_gic.h>
+#include <console.h>
#include <debug.h>
#include <platform.h>
#include <power_management.h>
@@ -51,6 +52,9 @@ int32_t tftf_enter_suspend(const suspend_info_t *info,
*/
flush_dcache_range((u_register_t)ctx, sizeof(*ctx));
+ /* Make sure any outstanding message is printed. */
+ console_flush();
+
if (info->psci_api == SMC_PSCI_CPU_SUSPEND)
rc = tftf_smc(&cpu_suspend_args);
else