From patchwork Tue Apr 13 12:21:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12200393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D257C43462 for ; Tue, 13 Apr 2021 12:27:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB4E261369 for ; Tue, 13 Apr 2021 12:27:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB4E261369 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XOxoMALqDqJzM7REFXl9b32TknkwKWFVVWJ2T51QQyA=; b=jXZmsA5Kv0pediQTKaMiR5eiUo YP9btN1O0uunZuGNC1DHll6idmwqHhCQlrc8KB7QyWmdUiEL0XpaEQthGyGpkMg9vav6GP4IFZ4h6 SswBGG+QBWa9ydBcvwh6ofKCITDcaa1Jp/53Tak/q3NfnbstLRAYSZojJXhpY+12t9axtA7nCy14x FpoEurnJQNM2t9j8nN3bo1Khr0EFzv/PFmxu174ULkSo7bE1clphi9qfAzw6NPnCvhjuznIG8s/ad ejnmMxu7gBrx+TUVBuQxu1ibs0ePyL9eIwklxYtA9MIaRPLAMgVg4p9bKc0PPq/cA3VA2+Ok2I4ia fr/iKCkA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWI3i-009DDq-Du; Tue, 13 Apr 2021 12:22:22 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWI3d-009DDd-R8 for linux-arm-kernel@desiato.infradead.org; Tue, 13 Apr 2021 12:22:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=eMAcUc2SKhet3kq2u5tt2i2nq6dqi25GUsFvVVP1C/g=; b=J8XxxW5f4iZwlk8cqV/5t01tyh upxiDTH1YKrCqf46KP0ZTV4i41Bh13+QAwpKviSb+FHYvzLkkCXW806YcwREb9ZsuO22tJ3f0iq5a KiWSP+ygCTSXaXv6K2+86WJQ4LYL57V8SdTY1XIW4xOWknb9ap5oFrPsi2mj+VdUXos0f3JS2hrXG DmczI85jYLGAFhBzmXJZP+YEPuDNdXBwdLjoZZ7RBRcVMlUPMSSSxtYWtdbRKVunB6ElvrXr06MNO 9K4YO14yajFgC68OXXxep/E2zFYQX5mVIUlWuZV9EDswTyHpRdThSTtk9KN8AduhRTVViDkVZvqTM 0Yt9B/Jw==; Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWI3a-00715R-GG for linux-arm-kernel@lists.infradead.org; Tue, 13 Apr 2021 12:22:16 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:ed15:b7e9:afd7:f062]) by xavier.telenet-ops.be with bizsmtp id sCN42400F1dBBzp01CN4h7; Tue, 13 Apr 2021 14:22:06 +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 1lWI3P-00FJHU-TZ; Tue, 13 Apr 2021 14:22:03 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lWI3P-002kNZ-EJ; Tue, 13 Apr 2021 14:22:03 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Marc Zyngier , Hector Martin Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] irqchip: APPLE_AIC should depend on ARCH_APPLE Date: Tue, 13 Apr 2021 14:21:58 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210413_052214_696847_93E16B17 X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Apple Interrupt Controller is only present on Apple Silicon SoCs. Hence add a dependency on ARCH_APPLE, to prevent asking the user about this driver when configuring a kernel without Apple Silicon SoC support. Drop the default, as ARCH_APPLE already selects APPLE_AIC. Fixes: 76cde26394114f6a ("irqchip/apple-aic: Add support for the Apple Interrupt Controller") Signed-off-by: Geert Uytterhoeven Acked-by: Hector Martin --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index d3a14f304ec80caa..b165b3285d9b0555 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -580,7 +580,7 @@ config MST_IRQ config APPLE_AIC bool "Apple Interrupt Controller (AIC)" depends on ARM64 - default ARCH_APPLE + depends on ARCH_APPLE || COMPILE_TEST help Support for the Apple Interrupt Controller found on Apple Silicon SoCs, such as the M1.