Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16297582rwd; Mon, 26 Jun 2023 08:12:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5F6Fda7rMrbs0o0/Zuoo5seVpBaOdONd43JVueDeM5HQhjiW8EyGXldgW5MkCj9gsfSu4P X-Received: by 2002:a17:907:a41e:b0:989:2368:20d9 with SMTP id sg30-20020a170907a41e00b00989236820d9mr18507156ejc.75.1687792329204; Mon, 26 Jun 2023 08:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687792329; cv=none; d=google.com; s=arc-20160816; b=Sx0zAHEA916GEMwLoa01FYZx73Jv5durLXAjPyH0DqBLr1046XaXLztDPy45bNCfPQ N3ss0zIc6Z6y3b9PMOVBP/TjhqVtm5Ue1u+5MU3xeTWJ99jg9Zc7L0N8KkBnCwJKKhkj MBVSMVpgqIVd3pPxSsLK8xN9FKqLoY8B5gwWO96gyi6FjabbsHCuSPcmdrhpVT17Xdme +6rpBhHsxFuS5CPIO7SJcF+heXtMI3pXLX0EQ8sJ0CRkPH4hiuN9Bt+yMqTHrIJgXcWs +WY2J0gqouiXsBiRjt8B2O3YzYMkaasIjCOMluGyhuqNE0jmpd3KVWPyv5GOr7wVzX8N FJ5Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha25-20020a170906a89900b00991c20fd371si1264864ejb.9.2023.06.26.08.11.43; Mon, 26 Jun 2023 08:12:09 -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 S230189AbjFZOzI (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 Content-Transfer-Encoding: 8bit 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 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 -- 2.25.1