Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2690471pxb; Tue, 24 Aug 2021 05:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYI0tNRmwI6DOP2Hs9gipDYIbgE2HWll2Z1fMNXb42io/BFpgZgzdwZ+GrX0LrAXHhMflz X-Received: by 2002:a6b:ec0b:: with SMTP id c11mr15687381ioh.207.1629808151607; Tue, 24 Aug 2021 05:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629808151; cv=none; d=google.com; s=arc-20160816; b=D4Xh9T9pcDNbER9yHzFXKqi3M/m7ete7rm62slT1CsfwTG2Cd1Giunrp9c4JTHGdAV k0Sg6u3agWaEQ5QaGtinUmLoUc36lr6Bax9qg+efG5eJI10PyU0byl9HYyNrR39bTBbT TL7Xa0SHPgAdP+Tl4KoTFgRmSSSO/f0QAvbtAkiHtCzrTgryFUiZQKdofqQH4PqYvFZf 1HRAC8sWh3j7i6I020F9hP1mUzuCOzkcymh/bpZI62kOzSxNcM/6jntSLKGo80IOSCBu zljpvnyxvTO79gIzOiBFC2jzHJsfgpneS+S+fgtMKU6fHWCmsyuxfR5DBC9+KxP+4bA5 CWdw== 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=GDNBqvVr8TKj3HZNKSrrcZlQoiaLDq/0vtPdC+wHPRs=; b=lTvU2m9r6BlHHNlpiV3YayTnJB8RR06XZzOYDuEBBJ6Afh5Y4Emgk0L7oCZgFqzbc5 MW1om7ISrsPGKsGt8R1ITS092JgYWaNRNuHqXf8GADVeudzigOX/Xi5Tl3ly+vG9VTic QKmgpiwNb0OTNnSvdfYN8DOd3Mls/WxTVRUs2EsNDUxz9TrTppaL/NrADF0kLr1NUebv MilLeGVeAGuPR+1z1eIL6p3MuvvQLLgh4WI+B5ZjO6K1I88lWb/B5LDFegtpnCVqg1hQ ebSjmZ3RJJS1NbiG5LAd03OYz8lT1DzSywLXF+2RAVt3gnyaYfcGaeBNZEUoUlhEM+O+ ZQJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si17948355ilu.143.2021.08.24.05.28.58; Tue, 24 Aug 2021 05:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236953AbhHXM2g (ORCPT + 99 others); Tue, 24 Aug 2021 08:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbhHXM2g (ORCPT ); Tue, 24 Aug 2021 08:28:36 -0400 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 994A6C061757 for ; Tue, 24 Aug 2021 05:27:51 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:fd1d:ce2:c16e:185a]) by albert.telenet-ops.be with bizsmtp id lQTk250094wgRL106QTkyV; Tue, 24 Aug 2021 14:27:48 +0200 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 1mIVWq-005Q6P-5H; Tue, 24 Aug 2021 14:27:44 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mIVWp-009Dq7-5E; Tue, 24 Aug 2021 14:27:43 +0200 From: Geert Uytterhoeven To: Andy Gross , Bjorn Andersson , John Stultz , He Ying Cc: Will Deacon , Kalle Valo , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] firmware: qcom_scm: QCOM_SCM should depend on ARCH_QCOM Date: Tue, 24 Aug 2021 14:27:41 +0200 Message-Id: <5cda77085c07dc2e8d2195507b287457cb2f09e9.1629807831.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Qualcomm Secure Channel Manager (SCM) is only present on Qualcomm SoCs. All drivers using it select QCOM_SCM, and depend on ARCH_QCOM. Until recently, QCOM_SCM was an invisible symbol, but this was changed by adding loadable module support, exposing it to all ARM and ARM64 users. Hence add a dependency on ARCH_QCOM, to prevent asking the user about this driver when configuring a kernel without Qualcomm SoC support. While at it, drop the dependency on ARM || ARM64, as that is implied by HAVE_ARM_SMCCC. Fixes: b42000e4b8741bf6 ("firmware: qcom_scm: Allow qcom_scm driver to be loadable as a permenent module") Fixes: 2954a6f12f250890 ("firmware: qcom-scm: Fix QCOM_SCM configuration") Signed-off-by: Geert Uytterhoeven --- drivers/firmware/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 220a58cf0a441ca2..0bebd5a62a9f4d66 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -204,7 +204,7 @@ config INTEL_STRATIX10_RSU config QCOM_SCM tristate "Qcom SCM driver" - depends on ARM || ARM64 + depends on ARCH_QCOM || COMPILE_TEST depends on HAVE_ARM_SMCCC select RESET_CONTROLLER -- 2.25.1