Skip to content

Commit 8e8e923

Browse files
Dan Vacuragregkh
authored andcommitted
usb: gadget: uvc: fix dropped frame after missed isoc
With the re-use of the previous completion status in 0d1c407 ("usb: dwc3: gadget: Return proper request status") it could be possible that the next frame would also get dropped if the current frame has a missed isoc error. Ensure that an interrupt is requested for the start of a new frame. Fixes: fc78941 ("usb: gadget: uvc: decrease the interrupt load to a quarter") Cc: <[email protected]> Signed-off-by: Dan Vacura <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4db0fbb commit 8e8e923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/gadget/function/uvc_video.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ static void uvcg_video_pump(struct work_struct *work)
431431

432432
/* Endpoint now owns the request */
433433
req = NULL;
434-
video->req_int_count++;
434+
if (buf->state != UVC_BUF_STATE_DONE)
435+
video->req_int_count++;
435436
}
436437

437438
if (!req)

0 commit comments

Comments
 (0)