summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>2013-10-23 20:26:27 +0200
committerMarek Vasut <marex@denx.de>2013-11-08 20:46:19 +0100
commit522c95647df3251ffda2749ded207f30964c8866 (patch)
tree62e2d0b40ae115f6e1a87194d5624ef1a2fd0dcd
parent351e9b206934c2d4a6a0acd1547caf077e4e675c (diff)
downloadu-boot-imx-522c95647df3251ffda2749ded207f30964c8866.zip
u-boot-imx-522c95647df3251ffda2749ded207f30964c8866.tar.gz
u-boot-imx-522c95647df3251ffda2749ded207f30964c8866.tar.bz2
usb: ohci-hcd: submit_common_msg: report actual_length properly
submit_common_msg should report amount of data passed from/to device. Instead, it always returned size requested by Host. Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
-rw-r--r--drivers/usb/host/ohci-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 4ed07da..219d182 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1548,7 +1548,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
}
dev->status = stat;
- dev->act_len = transfer_len;
+ dev->act_len = urb->actual_length;
#ifdef DEBUG
pkt_print(urb, dev, pipe, buffer, transfer_len,