patch "usb: gadget: uvc: fix dropped frame after missed isoc" added to usb-linus
Subsystems (3)
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 my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 8e8e923a49967b798e7d69f1ce9eff1dd2533547 Mon Sep 17 00:00:00 2001
From: Dan Vacura <[email protected]>
Date: Tue, 18 Oct 2022 16:50:37 -0500
Subject: usb: gadget: uvc: fix dropped frame after missed isoc
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.
--- drivers/usb/gadget/function/uvc_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/gadget/function/uvc_video.c +2 -1
@@ -431,7 +431,8 @@ static void uvcg_video_pump(struct work_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)
Signature · 1 line
2.38.1