Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2679459pxp; Mon, 14 Mar 2022 02:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXl1Prk00mjSDyv8cMxFU7GQ2XU4L4D6jSORcd8Safw71cvquEOuPY5mHNst2gEk9z++Kx X-Received: by 2002:a63:b748:0:b0:374:408a:eb69 with SMTP id w8-20020a63b748000000b00374408aeb69mr19740796pgt.103.1647250245093; Mon, 14 Mar 2022 02:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647250245; cv=none; d=google.com; s=arc-20160816; b=YpApCpMXjkgLlxycqrpLOb/b1++SCQIK3HgkhdxQInrA9HQ4qjN+3AkP2RI/kUWppl zybEjvLuBzHpjuMFNcInkAK63ftEIs/1R6sQAEJsJtUPVyPLnXAJq4K2t1B0wO22hoi3 /zZMI6EK4RvPYZZ/eqLiEpJVj+189/h7JmMyFgnxPNIBNnTrz/uqppCJmhVdkdFyw9+X G0GO2ctT3abIaUcZnslWsGlxr7hGk1sc6iKgCM33Hh1Mex8QWbksQb52EEi/F+Oe9FbH h+ynAK/CGMnREpBLRXnq2YKi3lmhkakpKMP1IcoTDwUf9LsmL6l/qa0DEP9vG/8qQuvN XaKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GvTCOZLgv39b/aGNlzjGcDiQOeQTYgOzacUFLLOYGVg=; b=XNM8qQUPAXtovVVMPnrm70KnfoK93ppvBtoSFm1alBD0zRE+KubeRi5hLWKJQZRPQO 4RM+g59vO5W70zBL2iZqjHAUYVVw7T2fI/zQ6taICoEjt6jASmb5rg8jVlS8DsUeadWX lE2B7QdIilCpSwKeuR479+0qUetf+wo8TPyF80yGtVPu1+Qm/pVLafrSERVmWuSwbx5E S0ly1LjL6jWWx3x7hhVhhyyKNjNQ+6aTKL/lK/DWiR9Bm9kPFe3i5p811yRYd7JdVHEY hE5iAlbNigQeWrpAPh1mcX90hSDT+Gj9gXTcIvAKHoPsQwdmrbmqgS4Vvk+zDOO6cspq nRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t9Ehfq7h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r139-20020a632b91000000b0037c53c0fd16si14154547pgr.767.2022.03.14.02.30.33; Mon, 14 Mar 2022 02:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t9Ehfq7h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232107AbiCLP4W (ORCPT + 99 others); Sat, 12 Mar 2022 10:56:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbiCLP4U (ORCPT ); Sat, 12 Mar 2022 10:56:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 815B84E383; Sat, 12 Mar 2022 07:55:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D0F560FEF; Sat, 12 Mar 2022 15:55:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04848C340EB; Sat, 12 Mar 2022 15:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647100513; bh=nFkGt4J0W+4sI78HWtQw72Tnh4EAy4lp1Vj3dVPq/PY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=t9Ehfq7hhbjm4McMguHwBdmAO4Mr5dj8OqyiEdxSXrOT/aqPQD/JcluiPKtastDlh Z0xx6TsV41CEA2NMi+1Ol0o+GOI7IUwEEknGhg8d1iXUaWKJh7Auc0+Y00MUyNweoV b0HIPd8BfWITtKQ+lJSGA+mGcrpyUsvm1sho7mGGQesFgCC0a+CRgRqTov19t1fi5G bS7TgdI2T3nfSHX5612IYeEXShT9FAlhhL7s0pkU3v1bPT81AJRNyILvv7eSUdhuQY JSekMVBu18N2lBNkQGgB+Gj3znLm8TBwQjQaKHFzYXVMO14GNKPKcrb6vkzLsTnaeE UqPgzUvtNqRzg== Date: Sat, 12 Mar 2022 16:55:05 +0100 From: Mauro Carvalho Chehab To: Jacopo Mondi Cc: Niklas =?UTF-8?B?U8O2ZGVybHVuZA==?= , Cai Huoqing , Dillon Min , Dmitry Osipenko , Eugen Hristev , Fabio Estevam , Hans Verkuil , Julia Lawall , Laurent Pinchart , Ming Qian , Mirela Rabulea , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Sakari Ailus , Sascha Hauer , Shawn Guo , Yang Yingliang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v2 07/38] media: platform: place NXP drivers on a separate dir Message-ID: <20220312165505.1edcf5d8@coco.lan> In-Reply-To: <20220311153951.t5shye6hjtvoxfzt@uno.localdomain> References: <723fbc3e03d8817916a085e218befd6400d299a3.1647006877.git.mchehab@kernel.org> <20220311153951.t5shye6hjtvoxfzt@uno.localdomain> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 11 Mar 2022 16:39:51 +0100 Jacopo Mondi escreveu: > Hi Mauro, > > On Fri, Mar 11, 2022 at 03:07:20PM +0100, Mauro Carvalho Chehab wrote: > > In order to cleanup the main platform media directory, move NXP > > driver to its own directory. > > Hans has collected my CSIS patches > https://git.linuxtv.org/hverkuil/media_tree.git/commit/?h=for-v5.18a&id=85fa189b2c829a005224cab3c2d88635dd36d777 > in > https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=for-v5.18a > > which creates a drivers/media/platform/imx directory. > > Should that one be re-used ? Hi Jacopo, I was planning to merge imx and imx-jpeg on a separate patch series that would also group drivers from other manufacturers, but, it should be ok to merge on v3. I won't be touching the Kconfig menuconfig/if/endif on this series, though. I'll do that in a more uniform way at the followup series. The idea would be to have a followup series organizing the drivers per manufacturer, e. g. make menuconfig would display something like: Media platform drivers Drivers for ... Drivers for ... Drivers for ... ... > > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > > > To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. > > See [PATCH v2 00/38] at: https://lore.kernel.org/all/cover.1647006877.git.mchehab@kernel.org/ > > > > MAINTAINERS | 2 +- > > drivers/media/platform/Kconfig | 37 +---------------- > > drivers/media/platform/Makefile | 4 +- > > drivers/media/platform/nxp/Kconfig | 40 +++++++++++++++++++ > > drivers/media/platform/nxp/Makefile | 5 +++ > > drivers/media/platform/{ => nxp}/fsl-viu.c | 0 > > drivers/media/platform/{ => nxp}/imx-pxp.c | 0 > > drivers/media/platform/{ => nxp}/imx-pxp.h | 0 > > .../media/platform/{ => nxp}/mx2_emmaprp.c | 0 > > 9 files changed, 49 insertions(+), 39 deletions(-) > > create mode 100644 drivers/media/platform/nxp/Kconfig > > create mode 100644 drivers/media/platform/nxp/Makefile > > rename drivers/media/platform/{ => nxp}/fsl-viu.c (100%) > > rename drivers/media/platform/{ => nxp}/imx-pxp.c (100%) > > rename drivers/media/platform/{ => nxp}/imx-pxp.h (100%) > > rename drivers/media/platform/{ => nxp}/mx2_emmaprp.c (100%) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 1b6f48a660de..780ef2ef3362 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -11841,7 +11841,7 @@ M: Philipp Zabel > > L: linux-media@vger.kernel.org > > S: Maintained > > T: git git://linuxtv.org/media_tree.git > > -F: drivers/media/platform/imx-pxp.[ch] > > +F: drivers/media/platform/nxp/imx-pxp.[ch] > > > > MEDIA DRIVERS FOR ASCOT2E > > M: Sergey Kozlov > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > > index ad95a25ae2fc..f5ef28d3e53c 100644 > > --- a/drivers/media/platform/Kconfig > > +++ b/drivers/media/platform/Kconfig > > @@ -36,6 +36,8 @@ config V4L_MEM2MEM_DRIVERS > > to capture and output drivers, which use memory buffers for just > > one of those. > > > > +source "drivers/media/platform/nxp/Kconfig" > > + > > # V4L platform drivers > > > > source "drivers/media/platform/marvell-ccic/Kconfig" > > @@ -68,19 +70,6 @@ config VIDEO_SH_VOU > > help > > Support for the Video Output Unit (VOU) on SuperH SoCs. > > > > -config VIDEO_VIU > > - tristate "Freescale VIU Video Driver" > > - depends on V4L_PLATFORM_DRIVERS > > - depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C > > - select VIDEOBUF_DMA_CONTIG > > - default y > > - 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. > > - > > config VIDEO_MUX > > tristate "Video Multiplexer" > > depends on V4L_PLATFORM_DRIVERS > > @@ -281,16 +270,6 @@ config VIDEO_CODA > > config VIDEO_IMX_VDOA > > def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST > > > > -config VIDEO_IMX_PXP > > - tristate "i.MX Pixel Pipeline (PXP)" > > - depends on V4L_MEM2MEM_DRIVERS > > - depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST) > > - select VIDEOBUF2_DMA_CONTIG > > - select V4L2_MEM2MEM_DEV > > - help > > - The i.MX Pixel Pipeline is a memory-to-memory engine for scaling, > > - color space conversion, and rotation. > > - > > source "drivers/media/platform/imx-jpeg/Kconfig" > > > > config VIDEO_MEDIATEK_JPEG > > @@ -431,18 +410,6 @@ config VIDEO_SAMSUNG_S5P_MFC > > help > > MFC 5.1 and 6.x driver for V4L2 > > > > -config VIDEO_MX2_EMMAPRP > > - tristate "MX2 eMMa-PrP support" > > - depends on V4L_MEM2MEM_DRIVERS > > - depends on VIDEO_DEV && VIDEO_V4L2 > > - depends on SOC_IMX27 || COMPILE_TEST > > - select VIDEOBUF2_DMA_CONTIG > > - select V4L2_MEM2MEM_DEV > > - help > > - MX2X chips have a PrP that can be used to process buffers from > > - memory to memory. Operations include resizing and format > > - conversion. > > - > > config VIDEO_SAMSUNG_EXYNOS_GSC > > tristate "Samsung Exynos G-Scaler driver" > > depends on V4L_MEM2MEM_DRIVERS > > diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile > > index 1a52a1a784b5..e9f982eb034b 100644 > > --- a/drivers/media/platform/Makefile > > +++ b/drivers/media/platform/Makefile > > @@ -22,6 +22,7 @@ obj-y += mtk-jpeg/ > > obj-y += mtk-mdp/ > > obj-y += mtk-vcodec/ > > obj-y += mtk-vpu/ > > +obj-y += nxp/ > > obj-y += omap/ > > obj-y += omap3isp/ > > obj-y += qcom/camss/ > > @@ -45,10 +46,8 @@ obj-y += vsp1/ > > obj-y += xilinx/ > > > > # Please place here only ancillary drivers that aren't SoC-specific > > -obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o > > obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o > > obj-$(CONFIG_VIDEO_MUX) += video-mux.o > > -obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o > > obj-$(CONFIG_VIDEO_PXA27x) += pxa_camera.o > > obj-$(CONFIG_VIDEO_RCAR_DRIF) += rcar_drif.o > > obj-$(CONFIG_VIDEO_RCAR_ISP) += rcar-isp.o > > @@ -58,4 +57,3 @@ obj-$(CONFIG_VIDEO_RENESAS_FDP1) += rcar_fdp1.o > > obj-$(CONFIG_VIDEO_RENESAS_JPU) += rcar_jpu.o > > obj-$(CONFIG_VIDEO_SH_VOU) += sh_vou.o > > obj-$(CONFIG_VIDEO_VIA_CAMERA) += via-camera.o > > -obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o > > diff --git a/drivers/media/platform/nxp/Kconfig b/drivers/media/platform/nxp/Kconfig > > new file mode 100644 > > index 000000000000..92724121ff91 > > --- /dev/null > > +++ b/drivers/media/platform/nxp/Kconfig > > @@ -0,0 +1,40 @@ > > +# SPDX-License-Identifier: GPL-2.0-only > > + > > +# V4L drivers > > + > > +config VIDEO_VIU > > + tristate "Freescale/NXP VIU Video Driver" > > + depends on V4L_PLATFORM_DRIVERS > > + depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C > > + select VIDEOBUF_DMA_CONTIG > > + default y > > + 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 > > + tristate "i.MX Pixel Pipeline (PXP)" > > + depends on V4L_MEM2MEM_DRIVERS > > + depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST) > > + select VIDEOBUF2_DMA_CONTIG > > + select V4L2_MEM2MEM_DEV > > + help > > + The i.MX Pixel Pipeline is a memory-to-memory engine for scaling, > > + color space conversion, and rotation. > > + > > +config VIDEO_MX2_EMMAPRP > > + tristate "Freescale/NXP MX2 eMMa-PrP support" > > + depends on V4L_MEM2MEM_DRIVERS > > + depends on VIDEO_DEV && VIDEO_V4L2 > > + depends on SOC_IMX27 || COMPILE_TEST > > + select VIDEOBUF2_DMA_CONTIG > > + select V4L2_MEM2MEM_DEV > > + help > > + MX2X chips have a PrP that can be used to process buffers from > > + memory to memory. Operations include resizing and format > > + conversion. > > diff --git a/drivers/media/platform/nxp/Makefile b/drivers/media/platform/nxp/Makefile > > new file mode 100644 > > index 000000000000..147bd7ad4ef4 > > --- /dev/null > > +++ b/drivers/media/platform/nxp/Makefile > > @@ -0,0 +1,5 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > + > > +obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o > > +obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o > > +obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o > > diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/nxp/fsl-viu.c > > similarity index 100% > > rename from drivers/media/platform/fsl-viu.c > > rename to drivers/media/platform/nxp/fsl-viu.c > > diff --git a/drivers/media/platform/imx-pxp.c b/drivers/media/platform/nxp/imx-pxp.c > > similarity index 100% > > rename from drivers/media/platform/imx-pxp.c > > rename to drivers/media/platform/nxp/imx-pxp.c > > diff --git a/drivers/media/platform/imx-pxp.h b/drivers/media/platform/nxp/imx-pxp.h > > similarity index 100% > > rename from drivers/media/platform/imx-pxp.h > > rename to drivers/media/platform/nxp/imx-pxp.h > > diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/nxp/mx2_emmaprp.c > > similarity index 100% > > rename from drivers/media/platform/mx2_emmaprp.c > > rename to drivers/media/platform/nxp/mx2_emmaprp.c > > -- > > 2.35.1 > > Thanks, Mauro