Message ID | 1519668550-26082-1-git-send-email-geert+renesas@glider.be (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers |
Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from <linux-media-owner@vger.kernel.org>) id 1eqNDB-0001E7-H9; Mon, 26 Feb 2018 18:09:17 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbeBZSJO (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Mon, 26 Feb 2018 13:09:14 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:60500 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbeBZSJM (ORCPT <rfc822;linux-media@vger.kernel.org>); Mon, 26 Feb 2018 13:09:12 -0500 Received: from ayla.of.borg ([84.194.111.163]) by albert.telenet-ops.be with bizsmtp id FW9B1x00c3XaVaC06W9BJ0; Mon, 26 Feb 2018 19:09:11 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from <geert@linux-m68k.org>) id 1eqND5-0004Xn-Cz; Mon, 26 Feb 2018 19:09:11 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from <geert@linux-m68k.org>) id 1eqND5-0006qX-BD; Mon, 26 Feb 2018 19:09:11 +0100 From: Geert Uytterhoeven <geert+renesas@glider.be> To: Mauro Carvalho Chehab <mchehab@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be> Subject: [PATCH] media: platform: Drop OF dependency of VIDEO_RENESAS_VSP1 Date: Mon, 26 Feb 2018 19:09:10 +0100 Message-Id: <1519668550-26082-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Commit Message
Geert Uytterhoeven
Feb. 26, 2018, 6:09 p.m. UTC
VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF.
As ARCH_RENESAS implies OF, the latter can be dropped.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/media/platform/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Feb 26, 2018 at 07:09:10PM +0100, Geert Uytterhoeven wrote: > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > As ARCH_RENESAS implies OF, the latter can be dropped. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> My reasoning is that ARCH_RENESAS depends on ARCH_MULTI_V7, which in turn depends on ARCH_MULTIPLATFORM which selects OF via USE_OF Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Hi Geert, Thank you for the patch. On Monday, 26 February 2018 20:09:10 EET Geert Uytterhoeven wrote: > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > As ARCH_RENESAS implies OF, the latter can be dropped. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> and taken in my tree. > --- > drivers/media/platform/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > index 614fbef08ddcabb0..2b8b1ad0edd9eb31 100644 > --- a/drivers/media/platform/Kconfig > +++ b/drivers/media/platform/Kconfig > @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP > config VIDEO_RENESAS_VSP1 > tristate "Renesas VSP1 Video Processing Engine" > depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA > - depends on (ARCH_RENESAS && OF) || COMPILE_TEST > + depends on ARCH_RENESAS || COMPILE_TEST > depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP > select VIDEOBUF2_DMA_CONTIG > select VIDEOBUF2_VMALLOC
Em Mon, 26 Feb 2018 19:09:10 +0100 Geert Uytterhoeven <geert+renesas@glider.be> escreveu: > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > As ARCH_RENESAS implies OF, the latter can be dropped. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > --- > drivers/media/platform/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > index 614fbef08ddcabb0..2b8b1ad0edd9eb31 100644 > --- a/drivers/media/platform/Kconfig > +++ b/drivers/media/platform/Kconfig > @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP > config VIDEO_RENESAS_VSP1 > tristate "Renesas VSP1 Video Processing Engine" > depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA > - depends on (ARCH_RENESAS && OF) || COMPILE_TEST > + depends on ARCH_RENESAS || COMPILE_TEST That is not correct! COMPILE_TEST doesn't depend on OF. With this patch, it will likely cause build failures with randconfigs. > depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP > select VIDEOBUF2_DMA_CONTIG > select VIDEOBUF2_VMALLOC Thanks, Mauro
Hi Mauro, On Tuesday, 6 March 2018 18:25:15 EET Mauro Carvalho Chehab wrote: > Em Mon, 26 Feb 2018 19:09:10 +0100 Geert Uytterhoeven escreveu: > > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > > As ARCH_RENESAS implies OF, the latter can be dropped. > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > --- > > > > drivers/media/platform/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/media/platform/Kconfig > > b/drivers/media/platform/Kconfig index 614fbef08ddcabb0..2b8b1ad0edd9eb31 > > 100644 > > --- a/drivers/media/platform/Kconfig > > +++ b/drivers/media/platform/Kconfig > > @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP > > > > config VIDEO_RENESAS_VSP1 > > > > tristate "Renesas VSP1 Video Processing Engine" > > depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA > > > > - depends on (ARCH_RENESAS && OF) || COMPILE_TEST > > + depends on ARCH_RENESAS || COMPILE_TEST > > That is not correct! > > COMPILE_TEST doesn't depend on OF. With this patch, it will likely > cause build failures with randconfigs. ARCH_RENESAS implies OF, so replacing (ARCH_RENESAS && OF) with ARCH_RENESAS doesn't change anything. The driver can be compiled with COMPILE_TEST and !OF both before and after this patch. > > depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP > > select VIDEOBUF2_DMA_CONTIG > > select VIDEOBUF2_VMALLOC
Em Tue, 06 Mar 2018 18:35:32 +0200 Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu: > Hi Mauro, > > On Tuesday, 6 March 2018 18:25:15 EET Mauro Carvalho Chehab wrote: > > Em Mon, 26 Feb 2018 19:09:10 +0100 Geert Uytterhoeven escreveu: > > > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > > > As ARCH_RENESAS implies OF, the latter can be dropped. > > > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > > --- > > > > > > drivers/media/platform/Kconfig | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/media/platform/Kconfig > > > b/drivers/media/platform/Kconfig index 614fbef08ddcabb0..2b8b1ad0edd9eb31 > > > 100644 > > > --- a/drivers/media/platform/Kconfig > > > +++ b/drivers/media/platform/Kconfig > > > @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP > > > > > > config VIDEO_RENESAS_VSP1 > > > > > > tristate "Renesas VSP1 Video Processing Engine" > > > depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA > > > > > > - depends on (ARCH_RENESAS && OF) || COMPILE_TEST > > > + depends on ARCH_RENESAS || COMPILE_TEST > > > > That is not correct! > > > > COMPILE_TEST doesn't depend on OF. With this patch, it will likely > > cause build failures with randconfigs. > > ARCH_RENESAS implies OF, so replacing (ARCH_RENESAS && OF) with ARCH_RENESAS > doesn't change anything. The driver can be compiled with COMPILE_TEST and !OF > both before and after this patch. OK! > > > > depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP > > > select VIDEOBUF2_DMA_CONTIG > > > select VIDEOBUF2_VMALLOC > Thanks, Mauro
On Tue, Mar 06, 2018 at 01:37:38PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 06 Mar 2018 18:35:32 +0200 > Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu: > > > Hi Mauro, > > > > On Tuesday, 6 March 2018 18:25:15 EET Mauro Carvalho Chehab wrote: > > > Em Mon, 26 Feb 2018 19:09:10 +0100 Geert Uytterhoeven escreveu: > > > > VIDEO_RENESAS_VSP1 depends on ARCH_RENESAS && OF. > > > > As ARCH_RENESAS implies OF, the latter can be dropped. > > > > > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > > > --- > > > > > > > > drivers/media/platform/Kconfig | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/media/platform/Kconfig > > > > b/drivers/media/platform/Kconfig index 614fbef08ddcabb0..2b8b1ad0edd9eb31 > > > > 100644 > > > > --- a/drivers/media/platform/Kconfig > > > > +++ b/drivers/media/platform/Kconfig > > > > @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP > > > > > > > > config VIDEO_RENESAS_VSP1 > > > > > > > > tristate "Renesas VSP1 Video Processing Engine" > > > > depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA > > > > > > > > - depends on (ARCH_RENESAS && OF) || COMPILE_TEST > > > > + depends on ARCH_RENESAS || COMPILE_TEST > > > > > > That is not correct! > > > > > > COMPILE_TEST doesn't depend on OF. With this patch, it will likely > > > cause build failures with randconfigs. > > > > ARCH_RENESAS implies OF, so replacing (ARCH_RENESAS && OF) with ARCH_RENESAS > > doesn't change anything. The driver can be compiled with COMPILE_TEST and !OF > > both before and after this patch. FWIIW, I think this is a useful cleanup. > OK! > > > > > > depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP > > > > select VIDEOBUF2_DMA_CONTIG > > > > select VIDEOBUF2_VMALLOC > > > > > > Thanks, > Mauro >
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 614fbef08ddcabb0..2b8b1ad0edd9eb31 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -448,7 +448,7 @@ config VIDEO_RENESAS_FCP config VIDEO_RENESAS_VSP1 tristate "Renesas VSP1 Video Processing Engine" depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA - depends on (ARCH_RENESAS && OF) || COMPILE_TEST + depends on ARCH_RENESAS || COMPILE_TEST depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP select VIDEOBUF2_DMA_CONTIG select VIDEOBUF2_VMALLOC