mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
UPSTREAM: usb: gadget: uvc: fix dropped frame after missed isoc
With the re-use of the previous completion status in0d1c407b1a("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:fc78941d81("usb: gadget: uvc: decrease the interrupt load to a quarter") Cc: <stable@vger.kernel.org> Signed-off-by: Dan Vacura <w36195@motorola.com> Link: https://lore.kernel.org/r/20221018215044.765044-2-w36195@motorola.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit8e8e923a49) Bug: 259171206 Change-Id: I7d1b9243b788d2fb3593c52f4fb49ba195720af6 Signed-off-by: Avichal Rakesh <arakesh@google.com>
This commit is contained in:
committed by
Avichal Rakesh
parent
ed87044a78
commit
b6ebfbf5a1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user