From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 23 Oct 2013 03:02:40 +0200 Subject: [U-Boot] [PATCH] usb:ohci-hcd: submit_common_msg: report actual_length properly In-Reply-To: <5266F50A.3050201@gmail.com> References: <5266F50A.3050201@gmail.com> Message-ID: <201310230302.40605.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mateusz Kulikowski, > 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 > --- > drivers/usb/host/ohci-hcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c > index c33c487..8a9e5f4 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, The patch is malformed somehow and cannot be applied. For one, I see spaces instead of tabs. Fix and repost please. NOTE: I will be N/A until the end of this week. Best regards, Marek Vasut