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: 113004 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7554129vqr; Mon, 26 Jun 2023 08:13:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ54E1tCPlmwlVV6Egk6I8dTdfOIDznlQQ3V42/REybpPCnRGcZcd3jdfJ0fcgzhKC64mbhd X-Received: by 2002:a05:6870:e145:b0:1b0:805:8678 with SMTP id z5-20020a056870e14500b001b008058678mr7717102oaa.24.1687792391577; Mon, 26 Jun 2023 08:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687792391; cv=none; d=google.com; s=arc-20160816; b=kzLHfZzztmCSK5OZRcPL/Rr4uJeWRvtLhKXGcDHE/JScxxGri3ArOHL2qmI9VaZpBs Wc4IhO4uvWdUbOz8LQgYbqbvWIt81YkWuLxngHSkcds4rgwnb7YR6xQ7x93Hw52rDlY2 LPt4vCBmXYzV64mlny1UjFqVLCXeS9oGPjiDo9LWMz2z2ivyEzIZ+GdgTIJIVK3+oIvS QtrUWeP/KFMsitLVXJGCLaaRpp/DUgYsRDFHpirgUuiUXZY3zmxg9vCnx4iwZRZrVRHU zWDQsfLNH4wUpvID+cH+fRI4wDwIMZ5bf1Q9xG02/mU8yZqiVP28EwE4PjJ9ykDNpwxi 6ClQ== 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 :message-id:date:subject:cc:to:from; bh=wZ4C26AOE3clNMysr/jvqWXwu3BiGh4poaNqt/womyk=; fh=96qtDnTU/URrOT6i7uaKTwabo9K0PbhXvr8DzFjxXtc=; b=I+sdFStcwpQIygTYdozqHmjpcqZK3tduOM0KrEblDdR10bDz56O1Iwi3/mUB3N6PeL cHryDEosFtm93MNIAG2WLDSuw21E92gKXNldyulfqcTKP0/zM2eRdr+t8Faws3gKyY3U 5JGFmBaNEIRN627N6OZqgqKzsLPXSmqxuhqHr06sC/o9XgQhwi6Y+oSc1IndV9EkAT9m NtFtjN2aKRdpHOYSEn3eAOvIsMso+Br6RO6jDWvrksAJNSd52HkiediHW5kMt6zqDJJc Xy6ig5hoMk6M+Xx2FHBDsxud7IZZ/HTF9e433AKQwHXx6x6R6fGAb9ry5DT2yhpuxVLj AjrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a6563c3000000b00553ebb05d16si5385612pgv.12.2023.06.26.08.12.58; Mon, 26 Jun 2023 08:13:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbjFZOzI (ORCPT + 99 others); Mon, 26 Jun 2023 10:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjFZOzE (ORCPT ); Mon, 26 Jun 2023 10:55:04 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E050D9; Mon, 26 Jun 2023 07:54:58 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8DxtMTApplke3ACAA--.3778S3; Mon, 26 Jun 2023 22:54:56 +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 Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org 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: 1Uk129KBj93XoW7ArWfJF4xtr1kGr18CFy3Awc_yoW8Xw1fpF s8tryFyrykJan8tw47Aa48GFy3Xa9xGFW5GrZxG3sxur4jy3s5Zryqyay3AryUZrs7trW3 KF93KF1UuF9rCrcCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUk2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv 67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6x kF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU2ID7UUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769778594448472292?= X-GMAIL-MSGID: =?utf-8?q?1769778594448472292?= 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