This patch series converts cx18 to vb2. It also fixes a number of compliance issues. The first two patches fix core bugs that only appear with a somewhat weird driver like cx18: video0 only supports read() but streaming ioctls were incorrectly enabled in the core; also vb2_fop_read had an ownership issue in case vb2_read would return an error. cx18 now passes the v4l2-compliance tests. As usual, the vb2 conversion patch is pretty much unreviewable. It's impossible to do an incremental vb2 conversion, it's all or nothing. Regards, Hans The following changes since commit 3e62aba8284de0994a669d07983299242e68fe72: media: imx-mipi-csis: Check csis_fmt validity before use (2023-02-26 11:21:33 +0100) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-cx18 for you to fetch changes up to 9dba815c0cbbd283586b9066f652da32e1a9381b: cx18: fix format compliance issues (2023-02-27 10:26:18 +0100) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Hans Verkuil (8): vb2: set owner before calling vb2_read v4l2-dev.c: check for V4L2_CAP_STREAMING to enable streaming ioctls cx18: convert to vb2 cx18: fix incorrect input counting cx18: properly report pixelformats cx18: missing CAP_AUDIO for vbi stream cx18: reorder fmt_vid_cap functions in cx18-ioctl.c cx18: fix format compliance issues drivers/media/common/videobuf2/videobuf2-v4l2.c | 5 +- drivers/media/pci/cx18/Kconfig | 2 +- drivers/media/pci/cx18/cx18-driver.c | 4 +- drivers/media/pci/cx18/cx18-driver.h | 24 ++-- drivers/media/pci/cx18/cx18-fileops.c | 85 +++----------- drivers/media/pci/cx18/cx18-fileops.h | 3 +- drivers/media/pci/cx18/cx18-ioctl.c | 391 ++++++++++++++++++++++++++-------------------------------------- drivers/media/pci/cx18/cx18-mailbox.c | 27 ++--- drivers/media/pci/cx18/cx18-streams.c | 278 +++++++++++++++++++++++---------------------- drivers/media/v4l2-core/v4l2-dev.c | 5 +- 10 files changed, 357 insertions(+), 467 deletions(-)