From patchwork Tue Jun 6 09:55:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13268877 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0DB6CC77B73 for ; Tue, 6 Jun 2023 09:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=vebSDHasNp+wp0/DFs3EhsF5kblbH+zCN5qPSqjqPIs=; b=wa06E03nRPfA9O rVikJrbpLlKCJOwfNGkKT/tK5NynRKgUiyw6sYVsqmDd/fJ2AjkifxC987JX2BSt44WJIrJ1z96a5 H3a0mz1ckIFvWAvH9T34nmU+m5YcYb0ahP1YdMGfxtyTFdR1qPc60m0e9aUq3tEWYAWk4ELKFf26W nyDpvzqK6JxamQmEOYCgCPKJA6WkAWrhlsAicRRkoKjaVNfTa9+zX42Ph4vJ/ZjfVLlXe4uuXMhlM HehZz61/E0RFVVOUFIIHznWY50K9Wl9pLXcFQpsUabX4KPHvTB7v6u6bNCLBEcBlI4kqlygwhW7uS TmbQmL1wvtPEwCd1mMxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6TPt-0016Bt-2F; Tue, 06 Jun 2023 09:55:53 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6TPq-0016Al-0H for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2023 09:55:51 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:a3e8:6562:a823:d832]) by michel.telenet-ops.be with bizsmtp id 5lvk2A0041Tjf1k06lvkck; Tue, 06 Jun 2023 11:55:44 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1q6TPP-005EIs-2y; Tue, 06 Jun 2023 11:55:43 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1q6TPj-00BR14-Qp; Tue, 06 Jun 2023 11:55:43 +0200 From: Geert Uytterhoeven To: Philipp Zabel , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Arnd Bergmann , Jacky Huang Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] reset: RESET_NUVOTON_MA35D1 should depend on ARCH_MA35 Date: Tue, 6 Jun 2023 11:55:42 +0200 Message-Id: <011578db5fc4426d7df5d8ce2cf5ac09b7080531.1686045287.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230606_025550_269529_46E280FC X-CRM114-Status: GOOD ( 11.91 ) 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 Nuvoton MA35D1 reset controller is only present on Nuvoton MA35 SoCs. Hence add a dependency on ARCH_MA35, to prevent asking the user about this driver when configuring a kernel without MA35 SoC support. Also, do not enable the driver by default when merely compile-testing. While at it, fix a misspelling of "Nuvoton". Fixes: e4bb55d6ccf0f774 ("reset: Add Nuvoton ma35d1 reset driver support") Signed-off-by: Geert Uytterhoeven Reviewed-by: Ilpo Järvinen --- drivers/reset/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 0cdf9d64c2185c89..ccd59ddd76100a51 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -144,8 +144,9 @@ config RESET_NPCM BMC SoCs. config RESET_NUVOTON_MA35D1 - bool "Nuvton MA35D1 Reset Driver" - default ARCH_MA35 || COMPILE_TEST + bool "Nuvoton MA35D1 Reset Driver" + depends on ARCH_MA35 || COMPILE_TEST + default ARCH_MA35 help This enables the reset controller driver for Nuvoton MA35D1 SoC.