From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: linux-media@vger.kernel.org
Subject: [PATCH 00/19] media: clean up unnecessary vb2_queue_release calls
Date: Fri, 17 Jul 2026 10:19:23 +0200 [thread overview]
Message-ID: <cover.1784276382.git.hverkuil+cisco@kernel.org> (raw)
Many drivers call vb2_queue_release() unnecessarily. There is normally no
reason for drivers to call this function directly, instead call
(_)vb2_fop_release(), vb2_video_unregister_device() or
v4l2_m2m_ctx_release().
This series removes the vb2_queue_release() calls from most drivers.
There are still a few old drivers that call it, but let's get the
majority fixed.
Regards,
Hans
Hans Verkuil (19):
media: videobuf2-v4l2.h: improve vb2_queue_release() documentation
media: pci: hws: drop call to vb2_queue_release
media: pci: ipu6: drop calls to vb2_video_unregister_device and
vb2_queue_release
media: pci: zoran: use vb2_video_unregister_device
media: platform: amd: isp4: drop vb2_queue_release calls
media: amlogic: c3: isp: drop vb2_queue_release calls
media: amphion: drop unnecessary vb2_queue_release call
media: arm: mali-c55: drop unnecessary vb2_queue_release calls
media: imagination: e5010-jpeg-enc: drop vb2_queue_release
media: nuvoton: drop unnecessary vb2_queue_release calls
media: nxp: imx7-media-csi: use
_vb2_fop_release/vb2_video_unregister_device
media: raspberrypi: pisp_be: use vb2_video_unregister_device
media: renesas: rzv2h-cru: use vb2_video_unregister_device
media: renesas: rzv2h-ivc: drop unnecessary vb2_queue_release calls
media: samsung: s3c-camif: drop unnecessary vb2_queue_release
media: ti: j721e-csi2rx: use vb2_video_unregister_device
staging: media: imx: drop vb2_queue_release call
staging: media: ipu7: drop unnecessary cleanup calls
media: renesas: rzg2l-cru: drop unnecessary vb2_queue_release
drivers/media/pci/hws/hws_video.c | 5 -----
drivers/media/pci/intel/ipu6/ipu6-isys-video.c | 6 +-----
drivers/media/pci/zoran/zoran.h | 1 -
drivers/media/pci/zoran/zoran_card.c | 4 +---
drivers/media/pci/zoran/zoran_driver.c | 5 -----
drivers/media/platform/amd/isp4/isp4_video.c | 8 +++-----
.../media/platform/amlogic/c3/isp/c3-isp-capture.c | 7 ++-----
.../media/platform/amlogic/c3/isp/c3-isp-params.c | 11 ++++-------
.../media/platform/amlogic/c3/isp/c3-isp-stats.c | 7 ++-----
drivers/media/platform/amphion/vpu_v4l2.c | 8 +-------
.../media/platform/arm/mali-c55/mali-c55-capture.c | 4 +---
.../media/platform/arm/mali-c55/mali-c55-params.c | 4 +---
.../media/platform/arm/mali-c55/mali-c55-stats.c | 4 +---
.../media/platform/imagination/e5010-jpeg-enc.c | 8 +-------
drivers/media/platform/nuvoton/npcm-video.c | 7 ++-----
drivers/media/platform/nxp/imx7-media-csi.c | 10 +++-------
.../media/platform/raspberrypi/pisp_be/pisp_be.c | 14 +++++---------
.../media/platform/renesas/rzg2l-cru/rzg2l-video.c | 5 ++---
.../platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c | 7 ++-----
.../platform/samsung/s3c-camif/camif-capture.c | 7 +------
.../media/platform/ti/j721e-csi2rx/j721e-csi2rx.c | 4 +---
drivers/staging/media/imx/imx-media-capture.c | 10 +++-------
drivers/staging/media/ipu7/ipu7-isys-video.c | 6 +-----
include/media/videobuf2-v4l2.h | 4 ++++
24 files changed, 42 insertions(+), 114 deletions(-)
--
2.53.0
next reply other threads:[~2026-07-17 8:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 8:19 Hans Verkuil [this message]
2026-07-17 8:19 ` [PATCH 01/19] media: videobuf2-v4l2.h: improve vb2_queue_release() documentation Hans Verkuil
2026-07-17 8:19 ` [PATCH 02/19] media: pci: hws: drop call to vb2_queue_release Hans Verkuil
2026-07-17 8:19 ` [PATCH 03/19] media: pci: ipu6: drop calls to vb2_video_unregister_device and vb2_queue_release Hans Verkuil
2026-07-17 8:19 ` [PATCH 04/19] media: pci: zoran: use vb2_video_unregister_device Hans Verkuil
2026-07-17 8:19 ` [PATCH 05/19] media: platform: amd: isp4: drop vb2_queue_release calls Hans Verkuil
2026-07-17 8:53 ` Bin Du
2026-07-17 8:19 ` [PATCH 06/19] media: amlogic: c3: isp: " Hans Verkuil
2026-07-17 12:47 ` Laurent Pinchart
2026-07-17 8:19 ` [PATCH 07/19] media: amphion: drop unnecessary vb2_queue_release call Hans Verkuil
2026-07-17 8:19 ` [PATCH 08/19] media: arm: mali-c55: drop unnecessary vb2_queue_release calls Hans Verkuil
2026-07-17 8:19 ` [PATCH 09/19] media: imagination: e5010-jpeg-enc: drop vb2_queue_release Hans Verkuil
2026-07-17 8:19 ` [PATCH 10/19] media: nuvoton: drop unnecessary vb2_queue_release calls Hans Verkuil
2026-07-17 8:19 ` [PATCH 11/19] media: nxp: imx7-media-csi: use _vb2_fop_release/vb2_video_unregister_device Hans Verkuil
2026-07-17 12:41 ` Laurent Pinchart
2026-07-17 8:19 ` [PATCH 12/19] media: raspberrypi: pisp_be: use vb2_video_unregister_device Hans Verkuil
2026-07-17 8:19 ` [PATCH 13/19] media: renesas: rzv2h-cru: " Hans Verkuil
2026-07-17 8:19 ` [PATCH 14/19] media: renesas: rzv2h-ivc: drop unnecessary vb2_queue_release calls Hans Verkuil
2026-07-17 8:19 ` [PATCH 15/19] media: samsung: s3c-camif: drop unnecessary vb2_queue_release Hans Verkuil
2026-07-17 8:19 ` [PATCH 16/19] media: ti: j721e-csi2rx: use vb2_video_unregister_device Hans Verkuil
2026-07-17 8:19 ` [PATCH 17/19] staging: media: imx: drop vb2_queue_release call Hans Verkuil
2026-07-17 8:19 ` [PATCH 18/19] staging: media: ipu7: drop unnecessary cleanup calls Hans Verkuil
2026-07-17 8:19 ` [PATCH 19/19] media: renesas: rzg2l-cru: drop unnecessary vb2_queue_release Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1784276382.git.hverkuil+cisco@kernel.org \
--to=hverkuil+cisco@kernel.org \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox