aboutsummaryrefslogtreecommitdiffstats
path: root/usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch
diff options
Diffstat (limited to 'usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch')
-rw-r--r--usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch b/usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch
new file mode 100644
index 00000000000000..7d3bb7b4c9d887
--- /dev/null
+++ b/usb/usb-s3c-hsotg-fix-the-out-ep0-limit.patch
@@ -0,0 +1,32 @@
+From ben@ben-laptop.fluff.org Thu Jul 22 16:50:10 2010
+From: Ben Dooks <ben-linux@fluff.org>
+To: linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org
+Cc: gregkh@suse.de, Ben Dooks <ben-linux@fluff.org>
+Subject: USB: s3c-hsotg: Fix the OUT EP0 limit
+Date: Mon, 19 Jul 2010 09:40:48 +0100
+Message-Id: <1279528850-28245-10-git-send-email-ben-linux@fluff.org>
+
+The EP0 out limit is the same as the IN limit, so make them the same.
+
+Signed-off-by: Ben Dooks <ben-linux@fluff.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ drivers/usb/gadget/s3c-hsotg.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/drivers/usb/gadget/s3c-hsotg.c
++++ b/drivers/usb/gadget/s3c-hsotg.c
+@@ -611,11 +611,10 @@ static unsigned get_ep_limit(struct s3c_
+ maxsize = S3C_DxEPTSIZ_XferSize_LIMIT + 1;
+ maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1;
+ } else {
++ maxsize = 64+64;
+ if (hs_ep->dir_in) {
+- maxsize = 64+64;
+ maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1;
+ } else {
+- maxsize = 0x3f;
+ maxpkt = 2;
+ }
+ }