]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: remove pause flag use
authorDan Vacura <w36195@motorola.com>
Wed, 13 Apr 2022 19:24:02 +0000 (14:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 16:15:07 +0000 (18:15 +0200)
commite09fe18a1465acccd8b138b076c7be0f12e6c9e1
treeb642d401f86d44c73e9aefcecbc1031386e9b15f
parent4908ad61eb93c9fd92f8d203b4b1e24604634412
usb: gadget: uvc: remove pause flag use

The pause flag doesn't appear to serve a purpose as it is possible for
the pump worker thread to not be running when new buffers are queued.
Before the following change was introduced: "7b8e69da657b usb: gadget:
uvc_video: add worker to handle the frame pumping", the pause flag
status was discarded and never returned. This masked a current issues of
the userspace receiving non-zero values (considered unsuccessful) and
prevents trace_v4l2_qbuf() from being called.

Signed-off-by: Dan Vacura <w36195@motorola.com>
Link: https://lore.kernel.org/r/20220413192402.26063-1-w36195@motorola.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_queue.c
drivers/usb/gadget/function/uvc_queue.h