mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ratp: Abort console_countdown when activated
@ 2020-07-21  8:34 Jules Maselbas
  2020-07-21  8:34 ` [PATCH 2/2] ratp: Remove duplicated includes Jules Maselbas
  2020-08-03 21:23 ` [PATCH 1/2] ratp: Abort console_countdown when activated Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Jules Maselbas @ 2020-07-21  8:34 UTC (permalink / raw)
  To: Barebox List; +Cc: Jules Maselbas

Signed-off-by: Jules Maselbas <jmaselbas@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ratp: Remove duplicated includes
  2020-07-21  8:34 [PATCH 1/2] ratp: Abort console_countdown when activated Jules Maselbas
@ 2020-07-21  8:34 ` Jules Maselbas
  2020-08-03 21:23 ` [PATCH 1/2] ratp: Abort console_countdown when activated Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Jules Maselbas @ 2020-07-21  8:34 UTC (permalink / raw)
  To: Barebox List; +Cc: Jules Maselbas

Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
---
 common/ratp/ratp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c
index d06a7ca96..1f9271c99 100644
--- a/common/ratp/ratp.c
+++ b/common/ratp/ratp.c
@@ -18,11 +18,9 @@
 
 #include <common.h>
 #include <command.h>
-#include <kfifo.h>
 #include <malloc.h>
 #include <init.h>
 #include <ratp.h>
-#include <command.h>
 #include <byteorder.h>
 #include <environment.h>
 #include <kfifo.h>
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ratp: Abort console_countdown when activated
  2020-07-21  8:34 [PATCH 1/2] ratp: Abort console_countdown when activated Jules Maselbas
  2020-07-21  8:34 ` [PATCH 2/2] ratp: Remove duplicated includes Jules Maselbas
@ 2020-08-03 21:23 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2020-08-03 21:23 UTC (permalink / raw)
  To: Jules Maselbas; +Cc: Barebox List

On Tue, Jul 21, 2020 at 10:34:00AM +0200, Jules Maselbas wrote:
> Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
> ---
>  common/ratp/ratp.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks

Sascha

> 
> 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
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-03 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  8:34 [PATCH 1/2] ratp: Abort console_countdown when activated Jules Maselbas
2020-07-21  8:34 ` [PATCH 2/2] ratp: Remove duplicated includes Jules Maselbas
2020-08-03 21:23 ` [PATCH 1/2] ratp: Abort console_countdown when activated Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox