diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-26 11:17:35 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-26 11:17:35 +0000 |
commit | 395c94be081c70bb2a4b36bacdef46669bbc98fa (patch) | |
tree | 66ab61ebe7a2466c3f845acd797aca6302f18626 /sys/dev/usb/dwc2/dwc2.c | |
parent | 60e3bdcff00ab25522278019f67334f3161390ad (diff) |
Revert previous. uvideo checks the transfered length of every frame and
this break some devices.
As found the hardway by Hugo Sastre via sobrado@
Diffstat (limited to 'sys/dev/usb/dwc2/dwc2.c')
-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 f6d5ecca661..3414b2d6220 100644 --- a/sys/dev/usb/dwc2/dwc2.c +++ b/sys/dev/usb/dwc2/dwc2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2.c,v 1.29 2015/06/22 12:56:55 mpi Exp $ */ +/* $OpenBSD: dwc2.c,v 1.30 2015/06/26 11:17:34 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) { - len = dwc2_hcd_urb_get_iso_desc_actual_length(qtd->urb, - i); - xfer->actlen += len; + xfer->frlengths[i] = + dwc2_hcd_urb_get_iso_desc_actual_length( + qtd->urb, i); + xfer->actlen += xfer->frlengths[i]; } } |