projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
689d6ea
)
usb: langwell_udc: fix big file transfer issue.
author
Christophe Lebouc
<
[email protected]
>
Thu, 30 Sep 2010 14:34:36 +0000
(15:34 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 22 Oct 2010 17:22:00 +0000
(10:22 -0700)
This patch fixing the problem with large file transfers failing. Swap the read
order to avoid unexpected RX status.
Signed-off-by: Christophe Lebouc <
[email protected]
>
Signed-off-by: Hao Wu <
[email protected]
>
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/gadget/langwell_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/langwell_udc.c
b/drivers/usb/gadget/langwell_udc.c
index d297f9eb92e47ba8b1f82e3fd6372eb7dbd5e579..064306046702dce6bb05ddfb60d4cadfe3a9a95e 100644
(file)
--- a/
drivers/usb/gadget/langwell_udc.c
+++ b/
drivers/usb/gadget/langwell_udc.c
@@
-2440,12
+2440,14
@@
static int process_ep_req(struct langwell_udc *dev, int index,
dev_vdbg(&dev->pdev->dev, "---> %s()\n", __func__);
for (i = 0; i < curr_req->dtd_count; i++) {
- remaining_length = le16_to_cpu(curr_dtd->dtd_total);
- actual -= remaining_length;
/* command execution states by dTD */
dtd_status = curr_dtd->dtd_status;
+ barrier();
+ remaining_length = le16_to_cpu(curr_dtd->dtd_total);
+ actual -= remaining_length;
+
if (!dtd_status) {
/* transfers completed successfully */
if (!remaining_length) {