]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: ohci-hcd: submit_common_msg: report actual_length properly
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Wed, 23 Oct 2013 18:26:27 +0000 (20:26 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 8 Nov 2013 19:46:19 +0000 (20:46 +0100)
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>
drivers/usb/host/ohci-hcd.c

index 4ed07da842e9e89fb0e082b5ad6139a9d6fdeff3..219d18232ab899c815e8c99890e4036a329d11c8 100644 (file)
@@ -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,