Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4435804pxf; Tue, 16 Mar 2021 13:27:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDOf1c9hQsiuojYrzA/oNRIFY+IrlS7xeksm9vFQWX6wW+zH75P9GGxT+phvNHnGHzPj+o X-Received: by 2002:a17:906:c24b:: with SMTP id bl11mr32295316ejb.80.1615926451341; Tue, 16 Mar 2021 13:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615926451; cv=none; d=google.com; s=arc-20160816; b=MYk/Y/QiXO5pr78wqNvuiHAYMmZK8rNCcvavU/FSTv3xG384Go7H3a9oI0Qbs/RJTk MaKEmDyEzPF18XW3SLu/8KZl6vlQ+mj3CCcNPy4hBQbXw2Lhse/ftTwsJ11BreBWORxQ 2h986mXpeYFE+2sWwVkoT1ymIb8+PggP4DUtr+9Ezqib7V8GRYd8mnFL6TcR0qh5sxmT hIdmGeLx9fUscqOpGmn2srsTDv+cAavaWRAHmeoHxFO9lSgjTmUHPIfjiU+XfGBvngrj XPlParTHRSGEVAWYb2PfZnlJKWda35I0g0JfIMvLBjRuOtEhCovgkWirun4CqRpZoT9h p16A== 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=s/9fH1F5t5NL1lYGnUmaAH/2FP3d08YrAXWT0s6mPhU=; b=g2v0S4Yk8AmZNEBm3GtML8wtcQXz8Rn/jsSjL0D0swduiwm3qKxM7yafPvM2i81SpB l7Yjw6DuWHGS0nQcBKzHseKIlYLXllVG3NrSqJsseuxt1vS7d/KtVhGIScvl3hIFSOAm s6T66DP/nb1sAmzMvrUaRKSx14MFt/Dp87Cs7DKb3CaGUZD/M3dqugCPZU7uMmGxEjDB MWJ+BCRjjbz/8yZYo0/cW0WvPXbRZMj24AFolqZh4UY2BHVg/hhLSFg8SL9gooIILRdv 5B8rT+FWB2Fz/LHtanVSR6kit9KWj36ahf8OyDHBVDGjzk0adQZlHhbWH0q/u8x4B3Rd Dn0w== 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 g3si14779536edr.463.2021.03.16.13.27.08; Tue, 16 Mar 2021 13:27:31 -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 S235293AbhCPNhr (ORCPT + 99 others); Tue, 16 Mar 2021 09:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235183AbhCPNhg (ORCPT ); Tue, 16 Mar 2021 09:37:36 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB043C06174A for ; Tue, 16 Mar 2021 06:37:35 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:b1e0:9434:c5b6:aecd]) by michel.telenet-ops.be with bizsmtp id h1db2400P0UTkXy061dbK7; Tue, 16 Mar 2021 14:37:35 +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 1lM9t9-0088QV-4S; Tue, 16 Mar 2021 14:37:35 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lM9t8-009yJM-Ob; Tue, 16 Mar 2021 14:37:34 +0100 From: Geert Uytterhoeven To: Philipp Zabel , Florian Fainelli , Jim Quinlan Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] reset: RESET_BRCMSTB_RESCAL should depend on ARCH_BRCMSTB Date: Tue, 16 Mar 2021 14:37:33 +0100 Message-Id: <20210316133733.2376745-1-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 Broadcom STB RESCAL reset controller is only present on Broadcom BCM7216 platforms. Hence add a dependency on ARCH_BRCMSTB, to prevent asking the user about this driver when configuring a kernel without BCM7216 support. Also, merely enabling CONFIG_COMPILE_TEST should not enable additional code, and thus should not enable this driver by default. Fixes: 4cf176e52397853e ("reset: Add Broadcom STB RESCAL reset controller") Signed-off-by: Geert Uytterhoeven --- drivers/reset/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 4171c6f763858a03..6dba675bcec47777 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -59,7 +59,8 @@ config RESET_BRCMSTB config RESET_BRCMSTB_RESCAL bool "Broadcom STB RESCAL reset controller" depends on HAS_IOMEM - default ARCH_BRCMSTB || COMPILE_TEST + depends on ARCH_BRCMSTB || COMPILE_TEST + default ARCH_BRCMSTB help This enables the RESCAL reset controller for SATA, PCIe0, or PCIe1 on BCM7216. -- 2.25.1