usb: gadget: uvc: dont drop frames if zero length packages are late
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 13 Feb 2024 23:37:54 +0000 (00:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:08:45 +0000 (17:08 +0100)
commitab9ffa51d5a2f3145839ca59354b3f74d18f7e85
tree549480cf25c5cae3e8a13b646630d40f5f4da8cd
parent58da4e57cb2980c9405575c8de937ebe4ed02202
usb: gadget: uvc: dont drop frames if zero length packages are late

If the request that was missed was zero bytes long, it
is likely that the overall transferred frame was not affected.
So don't flag the frame incomplete in that case.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20240214-uvc-error-tag-v1-1-37659a3877fe@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_video.c