[PATCH 3/5] usb/gadget: use generic usb_gadget_poll() in u_serial

Robert Jarzmik robert.jarzmik at free.fr
Wed Nov 23 22:01:28 EST 2011


From: Robert Jarzmik <robert.jarzmik at 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 at 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




More information about the barebox mailing list