diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-07-19 04:40:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:42 -0400 |
commit | 6cd68de741d5b05482cab369978663fdf78c407c (patch) | |
tree | bfd4cb3c6b3bb20d0fa4a6f844787ab853f3b81a /drivers | |
parent | c9a64ea884b8b40d70077ffe1e93081f2190f072 (diff) |
USB: s3c-hsotg: Fix max EP0 IN request length
The maximum length for any EP0 IN request on EP0 is 127 bytes, not 128
as the driver currently has it.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 10aeee145eea..1020006ecfc1 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c | |||
@@ -612,8 +612,7 @@ static unsigned get_ep_limit(struct s3c_hsotg_ep *hs_ep) | |||
612 | maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1; | 612 | maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1; |
613 | } else { | 613 | } else { |
614 | if (hs_ep->dir_in) { | 614 | if (hs_ep->dir_in) { |
615 | /* maxsize = S3C_DIEPTSIZ0_XferSize_LIMIT + 1; */ | 615 | maxsize = 64+64; |
616 | maxsize = 64+64+1; | ||
617 | maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1; | 616 | maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1; |
618 | } else { | 617 | } else { |
619 | maxsize = 0x3f; | 618 | maxsize = 0x3f; |