summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-07-19 10:40:48 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 23:35:43 +0200
commitb05ca580c39314c8527e2e1c36a823970cc01683 (patch)
treea812193f92bd8f35447b0d2f1d65e33adc6676a3 /drivers/usb/gadget/s3c-hsotg.c
parentUSB: s3c-hsotg: Fix max EP0 IN request length (diff)
downloadlinux-b05ca580c39314c8527e2e1c36a823970cc01683.tar.xz
linux-b05ca580c39314c8527e2e1c36a823970cc01683.zip
USB: s3c-hsotg: Fix the OUT EP0 limit
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>
Diffstat (limited to '')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 1020006ecfc1..552ec899500a 100644
--- 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_hsotg_ep *hs_ep)
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;
}
}