All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] media: videobuf2: Expose vb2_queue_is_busy() to drivers
@ 2022-03-18 21:14 Laurent Pinchart
  2022-03-18 21:14 ` [PATCH 1/3] media: videobuf2-v4l2: " Laurent Pinchart
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Laurent Pinchart @ 2022-03-18 21:14 UTC (permalink / raw)
  To: linux-media
  Cc: linux-renesas-soc, Tomasz Figa, Marek Szyprowski, Hans Verkuil,
	Kieran Bingham

Hello,

This small patch series exposes the vb2_queue_is_busy() function,
currently internal to videobuf2-v4l2.c, to drivers. The rationale is
explained in patch 1/3, and the first use case shown in 3/3: it allows
implementing additional checks at streamon time while keeping the owner
check first (as it's cheap, compared to other checks that can be more
expensive).

Patch 2/3 is a driver-by cleanup.

Laurent Pinchart (3):
  media: videobuf2-v4l2: Expose vb2_queue_is_busy() to drivers
  media: vsp1: Don't open-code vb2_fop_release()
  media: vsp1: Use vb2_queue_is_busy()

 .../media/common/videobuf2/videobuf2-v4l2.c   | 26 +++++++------------
 .../media/platform/renesas/vsp1/vsp1_video.c  | 12 ++-------
 include/media/videobuf2-v4l2.h                | 23 ++++++++++++++--
 3 files changed, 33 insertions(+), 28 deletions(-)


base-commit: 71e6d0608e4d1b79069990c7dacb3600ced28a3b
-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2022-07-06  5:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 21:14 [PATCH 0/3] media: videobuf2: Expose vb2_queue_is_busy() to drivers Laurent Pinchart
2022-03-18 21:14 ` [PATCH 1/3] media: videobuf2-v4l2: " Laurent Pinchart
2022-03-18 21:39   ` Kieran Bingham
2022-03-18 21:14 ` [PATCH 2/3] media: vsp1: Don't open-code vb2_fop_release() Laurent Pinchart
2022-03-18 21:44   ` Kieran Bingham
2022-05-06 10:12   ` [PATCH v2 " Laurent Pinchart
2022-03-18 21:14 ` [PATCH 3/3] media: vsp1: Use vb2_queue_is_busy() Laurent Pinchart
2022-03-18 21:40   ` Kieran Bingham
2022-07-06  5:34   ` Tomasz Figa

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.