diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-22 12:56:56 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-22 12:56:56 +0000 |
commit | eb9176cc781090737b89b8968fb77e3a7399fec3 (patch) | |
tree | b0b12d017fd5b2ffada073198908951bc7efb5b3 /sys/dev/usb/dwc2 | |
parent | d89838dc8da0ce6f7832c5abab9b4a52b5899ba5 (diff) |
Do not update frame lengths to reflect what has really been transfered
when an isochronous transfer is done.
Frame lengths are just input values and no driver mess with them.
ok ratchov@, jmatthew@
Diffstat (limited to 'sys/dev/usb/dwc2')
-rw-r--r-- | sys/dev/usb/dwc2/dwc2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c index b90ff51de0d..f6d5ecca661 100644 --- a/sys/dev/usb/dwc2/dwc2.c +++ b/sys/dev/usb/dwc2/dwc2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2.c,v 1.28 2015/06/08 08:47:38 jmatthew Exp $ */ +/* $OpenBSD: dwc2.c,v 1.29 2015/06/22 12:56:55 mpi Exp $ */ /* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */ /*- @@ -1771,14 +1771,14 @@ void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, } if (xfertype == UE_ISOCHRONOUS) { + uint32_t len; int i; xfer->actlen = 0; for (i = 0; i < xfer->nframes; ++i) { - xfer->frlengths[i] = - dwc2_hcd_urb_get_iso_desc_actual_length( - qtd->urb, i); - xfer->actlen += xfer->frlengths[i]; + len = dwc2_hcd_urb_get_iso_desc_actual_length(qtd->urb, + i); + xfer->actlen += len; } } |