All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] media: em28xx: fix lifecycle issues
@ 2026-05-19 11:54 Hans Verkuil
  2026-05-19 11:54 ` [PATCH 1/3] media: em28xx: use v4l2_device release callback Hans Verkuil
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hans Verkuil @ 2026-05-19 11:54 UTC (permalink / raw)
  To: linux-media; +Cc: Mauricio Faria de Oliveira

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-19 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 11:54 [PATCH 0/3] media: em28xx: fix lifecycle issues Hans Verkuil
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

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.