From: "Eric Bénard" <eric@eukrea.com>
To: barebox@lists.infradead.org
Subject: [PATCH v4 4/5] timeout: add poller_call
Date: Wed, 4 Jan 2012 10:36:48 +0100 [thread overview]
Message-ID: <1325669809-32637-4-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1325669809-32637-1-git-send-email-eric@eukrea.com>
without this, usb gadget can't enumerate during boot once the
timeout command is launched (thus preventing usbserial console
access to take control of the board before autoboot)
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
commands/timeout.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/commands/timeout.c b/commands/timeout.c
index 5f2ab9a..70b41e3 100644
--- a/commands/timeout.c
+++ b/commands/timeout.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <getopt.h>
#include <clock.h>
+#include <poller.h>
#define TIMEOUT_RETURN (1 << 0)
#define TIMEOUT_CTRLC (1 << 1)
@@ -70,6 +71,7 @@ static int do_timeout(struct command *cmdtp, int argc, char *argv[])
printf("%2d", countdown--);
do {
+ poller_call();
if (tstc()) {
int key = getc();
if (flags & TIMEOUT_CTRLC && key == 3)
--
1.7.7.5
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-01-04 9:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 9:36 [PATCH v4 1/5] fsl_udc: update and fix Eric Bénard
2012-01-04 9:36 ` [PATCH v4 2/5] dfu: fill bwPollTimeout and better handle detach Eric Bénard
2012-01-04 9:36 ` [PATCH v4 3/5] serial gadget: enable/disable on request Eric Bénard
2012-01-04 9:36 ` Eric Bénard [this message]
2012-01-04 10:47 ` [PATCH v4 4/5] timeout: add poller_call Jean-Christophe PLAGNIOL-VILLARD
2012-01-04 11:10 ` Eric Bénard
2012-01-04 11:44 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-04 13:32 ` Eric Bénard
2012-01-04 15:31 ` Eric Bénard
2012-01-04 9:36 ` [PATCH v4 5/5] eukrea_cpuimx35: fix compilation when CONFIG_USB_GADGET is enabled Eric Bénard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1325669809-32637-4-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.