From patchwork Wed Dec 15 09:27:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12677823 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE801C4332F for ; Wed, 15 Dec 2021 09:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241186AbhLOJ14 (ORCPT ); Wed, 15 Dec 2021 04:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241184AbhLOJ1z (ORCPT ); Wed, 15 Dec 2021 04:27:55 -0500 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBD3BC06173F for ; Wed, 15 Dec 2021 01:27:54 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id WZTq260094C55Sk06ZTqaH; Wed, 15 Dec 2021 10:27:52 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mxQZh-0056TH-Py; Wed, 15 Dec 2021 10:27:49 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mxQZh-009ahr-AS; Wed, 15 Dec 2021 10:27:49 +0100 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Ulrich Hecht , Koji Matsuoka , Arnd Bergmann , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/3] drm: rcar-du: DRM_RCAR_DW_HDMI should depend on ARCH_RENESAS Date: Wed, 15 Dec 2021 10:27:45 +0100 Message-Id: <0cb4593af06b64eb43a316913dc4bf83d46d7d7f.1639559338.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The Renesas R-Car Gen3 and RZ/G2 internal HDMI encoder is only present on Renesas R-Car Gen3 and RZ/G2 SoCs. Hence add a dependency on ARCH_RENESAS, to prevent asking the user about this driver when configuring a kernel without Renesas SoC support. Fixes: 40d0fa7095d06c73 ("drm: rcar-du: Add Gen3 HDMI encoder support") Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig index f6e6a6d5d987bf95..65d72be50f46f19e 100644 --- a/drivers/gpu/drm/rcar-du/Kconfig +++ b/drivers/gpu/drm/rcar-du/Kconfig @@ -25,6 +25,7 @@ config DRM_RCAR_CMM config DRM_RCAR_DW_HDMI tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support" depends on DRM && OF + depends on ARCH_RENESAS || COMPILE_TEST select DRM_DW_HDMI help Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder. From patchwork Wed Dec 15 09:27:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12677819 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 643D8C433EF for ; Wed, 15 Dec 2021 09:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241174AbhLOJ14 (ORCPT ); Wed, 15 Dec 2021 04:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241185AbhLOJ1z (ORCPT ); Wed, 15 Dec 2021 04:27:55 -0500 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7580C061574 for ; Wed, 15 Dec 2021 01:27:54 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by albert.telenet-ops.be with bizsmtp id WZTq2600r4C55Sk06ZTqzH; Wed, 15 Dec 2021 10:27:52 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mxQZi-0056TI-1e; Wed, 15 Dec 2021 10:27:50 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mxQZh-009ahy-BX; Wed, 15 Dec 2021 10:27:49 +0100 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Ulrich Hecht , Koji Matsuoka , Arnd Bergmann , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] drm: rcar-du: DRM_RCAR_USE_LVDS should depend on DRM_RCAR_DU Date: Wed, 15 Dec 2021 10:27:46 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The Renesas R-Car LVDS encoder driver is a subdriver of the R-Car Display Unit driver, and enabling DRM_RCAR_USE_LVDS while DRM_RCAR_DU is disabled doesn't have any impact on the kernel built. Hence add a dependency on DRM_RCAR_DU, to prevent asking the user about this driver when configuring a kernel without R-Car Display Unit support, like is already done for DRM_RCAR_CMM. Fixes: 42d95d1b3a9c649b ("drm/rcar: stop using 'imply' for dependencies") Signed-off-by: Geert Uytterhoeven --- The problem pre-existed before commit 42d95d1b3a9c649b, as the dependency of DRM_RCAR_LVDS on DRM_RCAR_DU was accidentally removed before. Fixes: c6a27fa41fabb35f ("drm: rcar-du: Convert LVDS encoder code to bridge driver") --- drivers/gpu/drm/rcar-du/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig index 65d72be50f46f19e..a7aa556e301d1087 100644 --- a/drivers/gpu/drm/rcar-du/Kconfig +++ b/drivers/gpu/drm/rcar-du/Kconfig @@ -32,7 +32,7 @@ config DRM_RCAR_DW_HDMI config DRM_RCAR_USE_LVDS bool "R-Car DU LVDS Encoder Support" - depends on DRM_BRIDGE && OF + depends on DRM_BRIDGE && OF && DRM_RCAR_DU default DRM_RCAR_DU help Enable support for the R-Car Display Unit embedded LVDS encoders. From patchwork Wed Dec 15 09:27:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12677821 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55606C433F5 for ; Wed, 15 Dec 2021 09:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241187AbhLOJ1z (ORCPT ); Wed, 15 Dec 2021 04:27:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241174AbhLOJ1z (ORCPT ); Wed, 15 Dec 2021 04:27:55 -0500 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC87C06173E for ; Wed, 15 Dec 2021 01:27:54 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id WZTr2600c4C55Sk06ZTraj; Wed, 15 Dec 2021 10:27:52 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mxQZi-0056TJ-2O; Wed, 15 Dec 2021 10:27:50 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mxQZh-009ai4-CA; Wed, 15 Dec 2021 10:27:49 +0100 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Ulrich Hecht , Koji Matsuoka , Arnd Bergmann , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] drm: rcar-du: DRM_RCAR_MIPI_DSI should depend on ARCH_RENESAS Date: Wed, 15 Dec 2021 10:27:47 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The Renesas R-Car Display Unit embedded MIPI DSI encoder is only present on Renesas R-Car V3U SoCs. Hence add a dependency on ARCH_RENESAS, to prevent asking the user about this driver when configuring a kernel without Renesas SoC support. Fixes: 155358310f013c23 ("drm: rcar-du: Add R-Car DSI driver") Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig index a7aa556e301d1087..2f4f6ac5fd4e66b1 100644 --- a/drivers/gpu/drm/rcar-du/Kconfig +++ b/drivers/gpu/drm/rcar-du/Kconfig @@ -48,6 +48,7 @@ config DRM_RCAR_LVDS config DRM_RCAR_MIPI_DSI tristate "R-Car DU MIPI DSI Encoder Support" depends on DRM && DRM_BRIDGE && OF + depends on ARCH_RENESAS || COMPILE_TEST select DRM_MIPI_DSI help Enable support for the R-Car Display Unit embedded MIPI DSI encoders.