From patchwork Mon Jun 26 14:54:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 13293033 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7CDCFEB64D7 for ; Mon, 26 Jun 2023 14:55:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9774410E214; Mon, 26 Jun 2023 14:55:01 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C7C610E214 for ; Mon, 26 Jun 2023 14:54:59 +0000 (UTC) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Axz8fApplkeXACAA--.3611S3; Mon, 26 Jun 2023 22:54:57 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxJ8zApplkbs4JAA--.2557S2; Mon, 26 Jun 2023 22:54:56 +0800 (CST) From: Sui Jingfeng To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Subject: [PATCH] drm/tegra: Kconfig: Express the dependency by using the depends on Date: Mon, 26 Jun 2023 22:54:56 +0800 Message-Id: <20230626145456.641252-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxJ8zApplkbs4JAA--.2557S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7ArWfJF4xtr1kGr18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VW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8RuWPUUUUU== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Because using the 'depends on' is easy to understand and more obvious. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/tegra/Kconfig | 6 ++---- drivers/gpu/host1x/Kconfig | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig index 498313778175..e7e3856665b1 100644 --- a/drivers/gpu/drm/tegra/Kconfig +++ b/drivers/gpu/drm/tegra/Kconfig @@ -26,19 +26,17 @@ config DRM_TEGRA To compile this driver as a module, choose M here: the module will be called tegra-drm. -if DRM_TEGRA - config DRM_TEGRA_DEBUG bool "NVIDIA Tegra DRM debug support" + depends on DRM_TEGRA help Say yes here to enable debugging support. config DRM_TEGRA_STAGING bool "Enable HOST1X interface" + depends on DRM_TEGRA depends on STAGING help Say yes if HOST1X should be available for userspace DRM users. If unsure, choose N. - -endif diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig index e6c78ae2003a..36eb98d93637 100644 --- a/drivers/gpu/host1x/Kconfig +++ b/drivers/gpu/host1x/Kconfig @@ -17,14 +17,11 @@ config TEGRA_HOST1X by host1x are referred to as clients. host1x includes some other functionality, such as synchronization. -if TEGRA_HOST1X - config TEGRA_HOST1X_FIREWALL bool "Enable HOST1X security firewall" + depends on TEGRA_HOST1X default y help Say yes if kernel should protect command streams from tampering. If unsure, choose Y. - -endif