media: vb2: prepare for vb2_ops_wait_prepare/finish removal
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | media: staging: atomisp: set lock before calling vb2_queue_init()drivers/ | +1 | 1 reply | |
| 2/9 | media: pwc: set lock before calling vb2_queue_init()drivers/ | +1 | 1 reply | |
| 3/9 | media: msi2500: set lock before calling vb2_queue_init()drivers/ | +1 | 1 reply | |
| 4/9 | media: hackrf: set lock before calling vb2_queue_init()drivers/ | +2 | 1 reply | |
| 5/9 | media: airspy: set lock before calling vb2_queue_init()drivers/ | +1 | 1 reply | |
| 6/9 | media: rcar_drif.c: set lock before calling vb2_queue_init()drivers/ | +1 | 3 replies | |
| 7/9 | media: video-i2c: set lock before calling vb2_queue_init()drivers/ | +1 | 2 replies | |
| 8/9 | media: vb2: vb2_core_queue_init(): sanity check lock and wait_prepare/finishdrivers/ | +8 | 2 replies | |
| 9/9 | media: vb2: use lock if wait_prepare/finish are NULLdrivers/ | +10 | 2 replies |
Reviews trailers per patch
7 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Matt Ranostay | Laurent Pinchart |
|---|---|---|
| 1/9 | R-b | |
| 2/9 | R-b | |
| 3/9 | R-b | |
| 4/9 | R-b | |
| 5/9 | R-b | |
| 6/9 | R-b | |
| 7/9 | A-b | R-b |
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] media: vb2: prepare for vb2_ops_wait_prepare/finish removal
This patch series sits on top of:
https://patchwork.linuxtv.org/project/linux-media/list/?series=13513
This series makes it possible for drivers to drop the wait_prepare/finish callbacks if the queue lock pointer is set.
Analyzing the code shows that in a few places the lock is set after the call to vb2_queue_init, so the first 7 patches move that lock assignment up.
Then two additional WARN_ONs are added to vb2_queue_init to ensure that either q->lock is set, or wait_prepare/finish are set.
The last patch will just unlock/lock the queue lock if wait_prepare/finish isn't set.
Once this is in, we can start dropping the wait_prepare/finish ops in almost all drivers.
Regards,
Hans
Hans Verkuil (9):
media: staging: atomisp: set lock before calling vb2_queue_init()
media: pwc: set lock before calling vb2_queue_init()
media: msi2500: set lock before calling vb2_queue_init()
media: hackrf: set lock before calling vb2_queue_init()
media: airspy: set lock before calling vb2_queue_init()
media: rcar_drif.c: set lock before calling vb2_queue_init()
media: video-i2c: set lock before calling vb2_queue_init()
media: vb2: vb2_core_queue_init(): sanity check lock and
wait_prepare/finish
media: vb2: use lock if wait_prepare/finish are NULL
.../media/common/videobuf2/videobuf2-core.c | 21 ++++++++++++++++--- drivers/media/i2c/video-i2c.c | 2 +- drivers/media/platform/renesas/rcar_drif.c | 2 +- drivers/media/usb/airspy/airspy.c | 2 +- drivers/media/usb/hackrf/hackrf.c | 4 ++-- drivers/media/usb/msi2500/msi2500.c | 2 +- drivers/media/usb/pwc/pwc-if.c | 2 +- .../media/atomisp/pci/atomisp_subdev.c | 2 +- 8 files changed, 26 insertions(+), 11 deletions(-)
Signature · 1 line
2.34.1