Skip to content

Commit 88fd798

Browse files
topdjgodjamess-huang
authored andcommitted
Fix usb isosynchronous no data issue
Change-Id: I7c8790ac6234cb3758617f064be11053764b237f Reviewed-on: https://tp-biosrd-v02/gerrit/81270 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 9818319 commit 88fd798

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/usb/dwc2/hcd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4211,10 +4211,12 @@ void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
42114211

42124212
if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) {
42134213
urb->error_count = dwc2_hcd_urb_get_error_count(qtd->urb);
4214+
urb->actual_length = 0;
42144215
for (i = 0; i < urb->number_of_packets; ++i) {
42154216
urb->iso_frame_desc[i].actual_length =
42164217
dwc2_hcd_urb_get_iso_desc_actual_length(
42174218
qtd->urb, i);
4219+
urb->actual_length += urb->iso_frame_desc[i].actual_length;
42184220
urb->iso_frame_desc[i].status =
42194221
dwc2_hcd_urb_get_iso_desc_status(qtd->urb, i);
42204222
}

0 commit comments

Comments
 (0)