-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello list,

We suffered from slow usbnet connections in GTA02 due to being not to
catch all date of the endpoint FIFO.  This patch hopefully fixes this
problem.

Thanks,
- -jserv
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHA3xh0Wz/dZh2kkkRAiKLAKCJ8NazNqcb+fGOw7aFcGi6UjnpIACfbdZk
tNsBJpzJHZVIBozTkgxSm8s=
=xhnk
-----END PGP SIGNATURE-----
Handle S3C244x USB endpoint FIFO properly.

This patch fixes a problem of slow usbnet connections in GTA02 due to
being not to catch all date of the endpoint FIFO.

Index: linux-2.6.22.5/drivers/usb/gadget/s3c2410_udc.c
===================================================================
--- linux-2.6.22.5.orig/drivers/usb/gadget/s3c2410_udc.c	2007-10-03 19:13:31.000000000 +0800
+++ linux-2.6.22.5/drivers/usb/gadget/s3c2410_udc.c	2007-10-03 19:18:00.000000000 +0800
@@ -845,6 +845,7 @@
 	u32			ep_csr1;
 	u32			idx;
 
+handle_ep_again:
 	if (likely (!list_empty(&ep->queue)))
 		req = list_entry(ep->queue.next,
 				struct s3c2410_request, queue);
@@ -884,6 +885,8 @@
 
 		if ((ep_csr1 & S3C2410_UDC_OCSR1_PKTRDY) && req) {
 			s3c2410_udc_read_fifo(ep,req);
+			if (s3c2410_udc_fifo_count_out())
+				goto handle_ep_again;
 		}
 	}
 }

Reply via email to