]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: mc: add manual request completion
authorHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 28 Nov 2025 19:16:12 +0000 (14:16 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:31 +0000 (15:56 +0100)
commitc789a7f40288c19004f786a6da67c3733d38c6af
tree90ea4d7837d67b740294af63de86d3ee155848e3
parenta519e21e32398459ba357e67b541402f7295ee1b
media: mc: add manual request completion

By default when the last request object is completed, the whole
request completes as well.

But sometimes you want to delay this completion to an arbitrary point in
time so add a manual complete mode for this.

In req_queue the driver marks the request for manual completion by
calling media_request_mark_manual_completion, and when the driver
wants to manually complete the request it calls
media_request_manual_complete().

Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
drivers/media/mc/mc-request.c
include/media/media-request.h