From patchwork Wed Jan 12 14:03:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12711447 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 2AADCC433FE for ; Wed, 12 Jan 2022 14:03:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353932AbiALODw (ORCPT ); Wed, 12 Jan 2022 09:03:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353902AbiALODq (ORCPT ); Wed, 12 Jan 2022 09:03:46 -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 AE16AC06175D for ; Wed, 12 Jan 2022 06:03:44 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:76d0:2bff:fec8:549]) by albert.telenet-ops.be with bizsmtp id hq3j260020kcUhD06q3jnQ; Wed, 12 Jan 2022 15:03:43 +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 1n7eE2-009GWv-Ld; Wed, 12 Jan 2022 15:03:42 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1n7eE1-000VpH-P3; Wed, 12 Jan 2022 15:03:41 +0100 From: Geert Uytterhoeven To: Herbert Xu , Sunil Goutham , Bharat Bhushan , Joseph Longever Cc: Arnd Bergmann , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] hwrng: cn10k - HW_RANDOM_CN10K should depend on ARCH_THUNDER Date: Wed, 12 Jan 2022 15:03:40 +0100 Message-Id: <266065918e47e8965bb6a0ab486da070278788e4.1641996057.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The Marvell CN10K True Random Number generator is only present on Marvell CN10K SoCs, and not available as an independent PCIe endpoint. Hence add a dependency on ARCH_THUNDER, to prevent asking the user about this driver when configuring a kernel without Cavium Thunder (incl. Marvell CN10K) SoC support. Fixes: 38e9791a02090414 ("hwrng: cn10k - Add random number generator support") Signed-off-by: Geert Uytterhoeven --- drivers/char/hw_random/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index c91cb48a1db168dd..b33c01e9935336f7 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -540,7 +540,7 @@ config HW_RANDOM_ARM_SMCCC_TRNG config HW_RANDOM_CN10K tristate "Marvell CN10K Random Number Generator support" - depends on HW_RANDOM && PCI && ARM64 + depends on HW_RANDOM && PCI && ARCH_THUNDER default HW_RANDOM help This driver provides support for the True Random Number