From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: linux-media@vger.kernel.org
Cc: Mauricio Faria de Oliveira <mfo@igalia.com>
Subject: [PATCH 0/3] media: em28xx: fix lifecycle issues
Date: Tue, 19 May 2026 13:54:40 +0200 [thread overview]
Message-ID: <cover.1779191683.git.hverkuil+cisco@kernel.org> (raw)
The first patch switches the em28xx driver to use the v4l2_device
release callback, letting the v4l2 core do all the refcounting
until the last user is gone and it is safe to free all memory.
The second patch drops the 'users' counter and uses the internal
v4l2_fh counter instead. And the last patch switches
video_unregister_device to vb2_video_unregister_device: this
ensures all streaming is stopped when the video device is unregistered.
All this still needs to be tested on real hardware, but that will
have to wait 2-3 weeks.
Regards,
Hans
Hans Verkuil (3):
media: em28xx: use v4l2_device release callback
media: em28xx: drop 'users' field
media: em28xx: use vb2_video_unregister_device
drivers/media/usb/em28xx/em28xx-video.c | 96 ++++++++++++++-----------
drivers/media/usb/em28xx/em28xx.h | 2 -
2 files changed, 54 insertions(+), 44 deletions(-)
--
2.53.0
next reply other threads:[~2026-05-19 11:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 11:54 Hans Verkuil [this message]
2026-05-19 11:54 ` [PATCH 1/3] media: em28xx: use v4l2_device release callback Hans Verkuil
2026-05-19 11:54 ` [PATCH 2/3] media: em28xx: drop 'users' field Hans Verkuil
2026-05-19 11:54 ` [PATCH 3/3] media: em28xx: use vb2_video_unregister_device 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.1779191683.git.hverkuil+cisco@kernel.org \
--to=hverkuil+cisco@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mfo@igalia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.