mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] console_simple: fix: set f_active
@ 2013-09-23  8:02 Jean-Christophe PLAGNIOL-VILLARD
  2013-09-24  7:23 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-23  8:02 UTC (permalink / raw)
  To: barebox

so generic code can check if the console is enabled

and now we can use loadb & loadxy

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 common/console_simple.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/console_simple.c b/common/console_simple.c
index e82d9cb..0f83fa4 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -97,6 +97,8 @@ int console_register(struct console_device *newcdev)
 		newcdev->setbrg(newcdev, newcdev->baudrate);
 	}
 
+	newcdev->f_active = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR;
+
 	barebox_banner();
 
 	return 0;
-- 
1.8.4.rc3


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

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

* Re: [PATCH 1/1] console_simple: fix: set f_active
  2013-09-23  8:02 [PATCH 1/1] console_simple: fix: set f_active Jean-Christophe PLAGNIOL-VILLARD
@ 2013-09-24  7:23 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-09-24  7:23 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Mon, Sep 23, 2013 at 10:02:00AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> so generic code can check if the console is enabled
> 
> and now we can use loadb & loadxy
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Applied, thanks

Sascha

> ---
>  common/console_simple.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/common/console_simple.c b/common/console_simple.c
> index e82d9cb..0f83fa4 100644
> --- a/common/console_simple.c
> +++ b/common/console_simple.c
> @@ -97,6 +97,8 @@ int console_register(struct console_device *newcdev)
>  		newcdev->setbrg(newcdev, newcdev->baudrate);
>  	}
>  
> +	newcdev->f_active = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR;
> +
>  	barebox_banner();
>  
>  	return 0;
> -- 
> 1.8.4.rc3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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] 2+ messages in thread

end of thread, other threads:[~2013-09-24  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-23  8:02 [PATCH 1/1] console_simple: fix: set f_active Jean-Christophe PLAGNIOL-VILLARD
2013-09-24  7:23 ` Sascha Hauer

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