]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: fix dropped frame after missed isoc
authorDan Vacura <w36195@motorola.com>
Tue, 18 Oct 2022 21:50:37 +0000 (16:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2022 10:30:34 +0000 (12:30 +0200)
commitc2c7e619d0a6fce6844159446edecb186fddffb6
treeca2d15f0dd9636fd544bb735e7a1467ffc44aa41
parentad40b7ff0718990f6703fbf6ae828bf668fcdde1
usb: gadget: uvc: fix dropped frame after missed isoc

With the re-use of the previous completion status in 392f69041759d
("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: 71dbe0e7c84d ("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>
drivers/usb/gadget/function/uvc_video.c