projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a64ea
)
USB: s3c-hsotg: Fix max EP0 IN request length
author
Ben Dooks
<ben-linux@fluff.org>
Mon, 19 Jul 2010 08:40:47 +0000
(09:40 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 10 Aug 2010 21:35:42 +0000
(14:35 -0700)
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>
drivers/usb/gadget/s3c-hsotg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/s3c-hsotg.c
b/drivers/usb/gadget/s3c-hsotg.c
index 10aeee145eeababa6500be2bf36ddd0eea5978e3..1020006ecfc1eda160e897be70806dca5a1c1074 100644
(file)
--- 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)
maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1;
} else {
if (hs_ep->dir_in) {
- /* maxsize = S3C_DIEPTSIZ0_XferSize_LIMIT + 1; */
- maxsize = 64+64+1;
+ maxsize = 64+64;
maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1;
} else {
maxsize = 0x3f;