]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: fsl-viu: deprecate this driver
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 11 Aug 2022 09:17:46 +0000 (11:17 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 29 Aug 2022 14:44:54 +0000 (16:44 +0200)
Deprecate the fsl-viu driver. This driver does not use the vb2 framework
for video streaming, instead it uses the old videobuf framework.

We want to get rid of these old drivers, so deprecated it for future
removal.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/Kconfig
drivers/media/platform/nxp/Makefile
drivers/staging/media/Kconfig
drivers/staging/media/Makefile
drivers/staging/media/deprecated/fsl-viu/Kconfig [new file with mode: 0644]
drivers/staging/media/deprecated/fsl-viu/Makefile [new file with mode: 0644]
drivers/staging/media/deprecated/fsl-viu/TODO [new file with mode: 0644]
drivers/staging/media/deprecated/fsl-viu/fsl-viu.c [moved from drivers/media/platform/nxp/fsl-viu.c with 100% similarity]

index 4c76656e353ea909642559fa2cc52380be6a8983..5917634889b564c149f05f683a3e90ec01dd4c27 100644 (file)
@@ -15,18 +15,6 @@ config VIDEO_IMX_MIPI_CSIS
          Video4Linux2 sub-device driver for the MIPI CSI-2 CSIS receiver
          v3.3/v3.6.3 found on some i.MX7 and i.MX8 SoCs.
 
-config VIDEO_VIU
-       tristate "NXP VIU Video Driver"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on VIDEO_DEV && (PPC_MPC512x || COMPILE_TEST) && I2C
-       select VIDEOBUF_DMA_CONTIG
-       help
-         Support for Freescale VIU video driver. This device captures
-         video data, or overlays video on DIU frame buffer.
-
-         Say Y here if you want to enable VIU device on MPC5121e Rev2+.
-         In doubt, say N.
-
 # mem2mem drivers
 
 config VIDEO_IMX_PXP
index 22ba28ac6d6333b1abb3f60aa302f55fd4984b64..81ab304ef31c2997fd9df34f5db8798c5b2a96d9 100644 (file)
@@ -6,4 +6,3 @@ obj-y += imx-jpeg/
 obj-$(CONFIG_VIDEO_IMX_MIPI_CSIS) += imx-mipi-csis.o
 obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o
 obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o
-obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o
index 0a0e052e39b14a7aafb58d9b5ef1decff526fdc0..15e92b3c63424d6c818c043810f74da29d1cee91 100644 (file)
@@ -56,6 +56,7 @@ menuconfig STAGING_MEDIA_DEPRECATED
 
 if STAGING_MEDIA_DEPRECATED
 source "drivers/staging/media/deprecated/cpia2/Kconfig"
+source "drivers/staging/media/deprecated/fsl-viu/Kconfig"
 source "drivers/staging/media/deprecated/meye/Kconfig"
 source "drivers/staging/media/deprecated/stkwebcam/Kconfig"
 source "drivers/staging/media/deprecated/tm6000/Kconfig"
index b7df6302dd8e6762588b2f0e8bb7f30056340512..10f7844b6681716230d81ef30274112553a6dbba 100644 (file)
@@ -13,5 +13,6 @@ obj-$(CONFIG_VIDEO_TEGRA)     += tegra-video/
 obj-$(CONFIG_VIDEO_HANTRO)     += hantro/
 obj-$(CONFIG_VIDEO_IPU3_IMGU)  += ipu3/
 obj-$(CONFIG_VIDEO_TM6000)     += deprecated/tm6000/
+obj-$(CONFIG_VIDEO_VIU)                += deprecated/fsl-viu/
 obj-$(CONFIG_USB_ZR364XX)      += deprecated/zr364xx/
 obj-$(CONFIG_DVB_AV7110)       += av7110/
diff --git a/drivers/staging/media/deprecated/fsl-viu/Kconfig b/drivers/staging/media/deprecated/fsl-viu/Kconfig
new file mode 100644 (file)
index 0000000..399892c
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config VIDEO_VIU
+       tristate "NXP VIU Video Driver (DEPRECATED)"
+       depends on V4L_PLATFORM_DRIVERS
+       depends on VIDEO_DEV && (PPC_MPC512x || COMPILE_TEST) && I2C
+       select VIDEOBUF_DMA_CONTIG
+       help
+         Support for Freescale VIU video driver. This device captures
+         video data, or overlays video on DIU frame buffer.
+
+         This driver is deprecated and is scheduled for removal by
+         the beginning of 2023. See the TODO file for more information.
+
+         Say Y here if you want to enable VIU device on MPC5121e Rev2+.
+         In doubt, say N.
diff --git a/drivers/staging/media/deprecated/fsl-viu/Makefile b/drivers/staging/media/deprecated/fsl-viu/Makefile
new file mode 100644 (file)
index 0000000..931ec56
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o
diff --git a/drivers/staging/media/deprecated/fsl-viu/TODO b/drivers/staging/media/deprecated/fsl-viu/TODO
new file mode 100644 (file)
index 0000000..ecb30a4
--- /dev/null
@@ -0,0 +1,7 @@
+This is one of the few drivers still not using the vb2
+framework, so this driver is now deprecated with the intent of
+removing it altogether by the beginning of 2023.
+
+In order to keep this driver it has to be converted to vb2.
+If someone is interested in doing this work, then contact the
+linux-media mailinglist (https://linuxtv.org/lists.php).