From: Robert Jarzmik <robert.jarzmik@free.fr>
To: barebox@lists.infradead.org
Cc: Robert Jarzmik <robert.jarzmik@atosorigin.com>
Subject: [PATCH 3/5] usb/gadget: use generic usb_gadget_poll() in u_serial
Date: Thu, 24 Nov 2011 04:01:28 +0100 [thread overview]
Message-ID: <1322103690-32669-4-git-send-email-robert.jarzmik@free.fr> (raw)
In-Reply-To: <1322103690-32669-1-git-send-email-robert.jarzmik@free.fr>
From: Robert Jarzmik <robert.jarzmik@atosorigin.com>
Use the generic gadget polling function instead of the
specific fsl function. This is a fix from a leftover in
gadget development.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
drivers/usb/gadget/u_serial.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
index d3baed7..8c2c8fa 100644
--- a/drivers/usb/gadget/u_serial.c
+++ b/drivers/usb/gadget/u_serial.c
@@ -382,7 +382,7 @@ static void serial_putc(struct console_device *cdev, char c)
status = usb_ep_queue(in, req);
while (list_empty(pool))
- fsl_udc_irq();
+ usb_gadget_poll();
}
static int serial_tstc(struct console_device *cdev)
@@ -475,7 +475,7 @@ static int do_mycdev(struct command *cmdtp, int argc, char *argv[])
printf("%c", i);
mdelay(500);
for (j = 0; j < 100; j++)
- fsl_udc_irq();
+ usb_gadget_poll();
}
return 0;
}
@@ -522,4 +522,3 @@ printf("%s\n", __func__);
gs_free_requests(gser->out, &port->read_pool);
gs_free_requests(gser->in, &port->write_pool);
}
-
--
1.7.5.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-11-24 3:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 3:01 [PATCH 0/5] Enable a console over a serial USB gadget Robert Jarzmik
2011-11-24 3:01 ` [PATCH 1/5] console: add console unregistering Robert Jarzmik
2011-11-24 3:01 ` [PATCH 2/5] usb/gadget: add pxa27x_udc driver Robert Jarzmik
2011-11-24 3:01 ` Robert Jarzmik [this message]
2011-11-24 3:01 ` [PATCH 4/5] usb/gadget: add USB serial connect and disconnect Robert Jarzmik
2011-11-24 3:01 ` [PATCH 5/5] usb/gadget: make serial gadget resistant to cable unplug Robert Jarzmik
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=1322103690-32669-4-git-send-email-robert.jarzmik@free.fr \
--to=robert.jarzmik@free.fr \
--cc=barebox@lists.infradead.org \
--cc=robert.jarzmik@atosorigin.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox