summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/omap-usb.txt
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2024-08-14 14:25:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-22 12:28:39 +0300
commitb52a07e07dead777517af3cbda851bb2cc157c9d (patch)
treef8a2447f37573ad83d4c65b4720c175aafe12f1c /Documentation/devicetree/bindings/usb/omap-usb.txt
parent0b00583ecacb0b51712a5ecd34cf7e6684307c67 (diff)
downloadlinux-b52a07e07dead777517af3cbda851bb2cc157c9d.tar.xz
usb: gadget: uvc: queue pump work in uvcg_video_enable()
Since commit "6acba0345b68 usb:gadget:uvc Do not use worker thread to pump isoc usb requests", pump work could only be queued in uvc_video_complete() and uvc_v4l2_qbuf(). If VIDIOC_QBUF is executed before VIDIOC_STREAMON, we can only depend on uvc_video_complete() to queue pump work. However, this requires some free requests in req_ready list. If req_ready list is empty all the time, pump work will never be queued and video datas will never be pumped to usb controller. Actually, this situation could happen when run uvc-gadget with static image: $ ./uvc-gadget -i 1080p.jpg uvc.0 When capture image from this device, the user app will always block there. The issue is uvc driver has queued video buffer before streamon, but the req_ready list is empty all the time after streamon. This will queue pump work in uvcg_video_enable() to fill some request to req_ready list so the uvc device could work properly. Fixes: 6acba0345b68 ("usb:gadget:uvc Do not use worker thread to pump isoc usb requests") Cc: stable@vger.kernel.org Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Link: https://lore.kernel.org/r/20240814112537.2608949-1-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/usb/omap-usb.txt')
0 files changed, 0 insertions, 0 deletions