diff options
author | Mateusz Kulikowski <mateusz.kulikowski@gmail.com> | 2013-10-23 18:26:27 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-11-08 19:46:19 (GMT) |
commit | 522c95647df3251ffda2749ded207f30964c8866 (patch) | |
tree | 62e2d0b40ae115f6e1a87194d5624ef1a2fd0dcd /drivers | |
parent | 351e9b206934c2d4a6a0acd1547caf077e4e675c (diff) | |
download | u-boot-fsl-qoriq-522c95647df3251ffda2749ded207f30964c8866.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 2 |
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, |