This is a note to let you know that I've just added the patch titled usb: gadget: uvc: fix dropped frame after missed isoc to the 6.0-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: usb-gadget-uvc-fix-dropped-frame-after-missed-isoc.patch and it can be found in the queue-6.0 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 8e8e923a49967b798e7d69f1ce9eff1dd2533547 Mon Sep 17 00:00:00 2001 From: Dan Vacura <w36195@xxxxxxxxxxxx> Date: Tue, 18 Oct 2022 16:50:37 -0500 Subject: usb: gadget: uvc: fix dropped frame after missed isoc From: Dan Vacura <w36195@xxxxxxxxxxxx> commit 8e8e923a49967b798e7d69f1ce9eff1dd2533547 upstream. With the re-use of the previous completion status in 0d1c407b1a749 ("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: fc78941d8169 ("usb: gadget: uvc: decrease the interrupt load to a quarter") Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Dan Vacura <w36195@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20221018215044.765044-2-w36195@xxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/gadget/function/uvc_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/usb/gadget/function/uvc_video.c +++ b/drivers/usb/gadget/function/uvc_video.c @@ -431,7 +431,8 @@ static void uvcg_video_pump(struct work_ /* Endpoint now owns the request */ req = NULL; - video->req_int_count++; + if (buf->state != UVC_BUF_STATE_DONE) + video->req_int_count++; } if (!req) Patches currently in stable-queue which might be from w36195@xxxxxxxxxxxx are queue-6.0/usb-gadget-uvc-fix-dropped-frame-after-missed-isoc.patch queue-6.0/usb-dwc3-gadget-stop-processing-more-requests-on-imi.patch queue-6.0/usb-gadget-uvc-fix-sg-handling-during-video-encode.patch queue-6.0/usb-gadget-uvc-fix-sg-handling-in-error-case.patch