summaryrefslogtreecommitdiff
path: root/common/ratp/ratp.c
diff options
context:
space:
mode:
authorJules Maselbas <jmaselbas@kalray.eu>2020-07-21 10:34:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-03 23:22:25 +0200
commit44b06c1510605fc8cbe9dd960f8befa58d087991 (patch)
tree2bd5481fea661abb29c26d9b17ec2e4f5857fb96 /common/ratp/ratp.c
parentf4fa9ee6bf36a823acee67b4b6610e92788be46b (diff)
downloadbarebox-44b06c1510605fc8cbe9dd960f8befa58d087991.tar.gz
ratp: Abort console_countdown when activated
Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/ratp/ratp.c')
-rw-r--r--common/ratp/ratp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c
index b8043fe5c7..5d1c6cc3e9 100644
--- a/common/ratp/ratp.c
+++ b/common/ratp/ratp.c
@@ -27,6 +27,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);
@@ -473,6 +474,8 @@ int barebox_ratp(struct console_device *cdev)
ctx->poller_registered = true;
+ console_countdown_abort();
+
console_set_active(&ctx->ratp_console, CONSOLE_STDOUT | CONSOLE_STDERR |
CONSOLE_STDIN);