From: Ben Dooks Date: Mon, 19 Jul 2010 08:40:48 +0000 (+0100) Subject: USB: s3c-hsotg: Fix the OUT EP0 limit X-Git-Tag: v2.6.36-rc1~293^2~32 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=b05ca580c39314c8527e2e1c36a823970cc01683;p=net-next-2.6.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 1020006ecfc..552ec899500 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; } }