[PATCH 1/2] ratp: Abort console_countdown when activated

Jules Maselbas jmaselbas at kalray.eu
Tue Jul 21 04:34:00 EDT 2020


Signed-off-by: Jules Maselbas <jmaselbas at kalray.eu>
---
 common/ratp/ratp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c
index e84ad2216..d06a7ca96 100644
--- a/common/ratp/ratp.c
+++ b/common/ratp/ratp.c
@@ -30,6 +30,7 @@
 #include <linux/sizes.h>
 #include <ratp_bb.h>
 #include <fs.h>
+#include <console_countdown.h>
 
 LIST_HEAD(ratp_command_list);
 EXPORT_SYMBOL(ratp_command_list);
@@ -458,6 +459,8 @@ int barebox_ratp(struct console_device *cdev)
 	if (ret)
 		goto out1;
 
+	console_countdown_abort();
+
 	console_set_active(&ctx->ratp_console, CONSOLE_STDOUT | CONSOLE_STDERR |
 			CONSOLE_STDIN);
 
-- 
2.17.1




More information about the barebox mailing list