From patchwork Thu Dec 3 23:07:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11949851 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=-18.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 23FF6C4167B for ; Thu, 3 Dec 2020 23:09:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 AC3F7207CF for ; Thu, 3 Dec 2020 23:09:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC3F7207CF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=ikR9mkuOUASCJOzkDifV1xbU0tZjX/5KR+M/ReXEmro=; b=fo3t99an0QJWuMymwHr/5rEX9H 53wSbwlUdaKvokhx1ddvvQQA7a8CQeWKWS4PKB1exfrEpEg+IAsLkUDQdYfjhlT+BPlCzFDYQlzuH 45aPlwuiokwTvWyDi0+bem3XZC9e+RXCCk+nCYt4diMkeg48vhD+fjIaFStM7RxDYOpTDSbnPU81z 96ezFplSD/7B3u425jKDbSlXmyNWtr5gcPVartwT2qm7YpLDTQw7jotptTjPZd+yzGuICXB2mWwTu kWE5laQXSrXb5IYjMqjB97fqmZaCMareqKRjCQp0jYhHa+5RwmDUcMOgAmgwNOxkgOyXmh8QJabFE sIrb75RA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkxhm-0000G5-2g; Thu, 03 Dec 2020 23:08:06 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkxhj-0000Fd-5d for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2020 23:08:04 +0000 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Anson Huang Subject: [PATCH] clk: imx: fix build failure on i.MX SCU clk Date: Fri, 4 Dec 2020 00:07:52 +0100 Message-Id: <20201203230756.1481397-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201203_180803_342962_5E8D533A X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dong Aisheng , Peng Fan , Anders Roxell , Arnd Bergmann , linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann When CONFIG_MXC_CLK_SCU is enabled, but CONFIG_CLK_IMX8QXP is not, the kernel fails to link with: aarch64-linux-ld: no input files make[5]: *** [scripts/Makefile.build:434: drivers/clk/imx/clk-imx-scu.o] Error 1 aarch64-linux-ld: no input files make[5]: *** [scripts/Makefile.build:434: drivers/clk/imx/clk-imx-lpcg-scu.o] Error 1 The only sensible configuration at the moment is to have both mean the same thing, so make hide the first one to avoid broken configurations. Fixes: e0d0d4d86c76 ("clk: imx8qxp: Support building i.MX8QXP clock driver as module") Reported-by: Anders Roxell Signed-off-by: Arnd Bergmann --- drivers/clk/imx/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 3b393cb07295..47d9ec3abd2f 100644 --- a/drivers/clk/imx/Kconfig +++ b/drivers/clk/imx/Kconfig @@ -5,9 +5,7 @@ config MXC_CLK depends on ARCH_MXC || COMPILE_TEST config MXC_CLK_SCU - tristate "IMX SCU clock" - depends on ARCH_MXC || COMPILE_TEST - depends on IMX_SCU && HAVE_ARM_SMCCC + tristate config CLK_IMX1 def_bool SOC_IMX1