media: uvcvideo: Handle locks in uvc_queue_return_buffers
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 16 Jun 2025 15:24:39 +0000 (15:24 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Jul 2025 17:27:27 +0000 (19:27 +0200)
commitb7ef53670321327f45de8bde5d38f1215927336f
treefa9f075f671b6b47f1e8828a00adc4836378258f
parentc93d73c9c2cfa7658f7100d201a47c4856746222
media: uvcvideo: Handle locks in uvc_queue_return_buffers

Most of the calls to uvc_queue_return_buffers() wrap the call with
spin_lock_irq()/spin_unlock_irq().

Rename uvc_queue_return_buffers to __uvc_queue_return_buffers to
indicate that this is the version that does not handle locks and create
a new version of the function that handles the lock.

Reviewed-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250616-uvc-fop-v4-2-250286570ee7@chromium.org
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_queue.c