From patchwork Thu Sep 21 09:36:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13393796 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 3AFB3E706FC for ; Thu, 21 Sep 2023 09:37:28 +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=6gx9hsh92XtsLLM6s3kTbnzneGsWsn5kuJPumDvzSeM=; b=U/REcGqnjdYUoN NBIGr6r7g2hNVe3Q/7JdzzpXe0evUeXjgr8sT7SvLaqw07soUiZiVx/tOsMgXgUjJuE/WoY1DcSXr 7BvZBuTXmwdUGj4QgFUVcB++S9dpFExHmpRXkK7gmYmKOoDCaSZtLTiBkipUUcd8F1XTJuVmqsPUB zHkqkWhfBWXult+tmnE184LZRZHupA4Dv4XxhfJQIzCsJqhAeCwqNThwN/v9pJyg+lwFqup7AuWnJ aP5fxLoXYvw7l/KKtYVjEB9NVfCrAKIt8x7nyimot4/kWeLBWVDXuHm//WwrbGfq46h2HAwLI+/qP rJxebL/hv1ENRXtMkWqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjG7N-005bu8-2Z; Thu, 21 Sep 2023 09:37:05 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjG7L-005bso-2t for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 09:37:05 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9ada609bb62so81782066b.2 for ; Thu, 21 Sep 2023 02:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695289020; x=1695893820; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tO07y52ihL4jiW+/YSc6o4oy7K98rV4fDYJiTaFp/cc=; b=fav5HGo3hQbL/KIxFwzIhez6r/YBWRxUIpDKRtsE/biAPqP7kcwkSrjH8DaYQXxkyd NdYKNYY46WK1nOp8KZe41PBpC/0p9MFVxvYi1tZgX37o+YcjNaa0u37vrsdNAIkiMdu7 4opQHc7gP8sT6nkKbcBLMKYf8S2M9C5ADS7Sv1CXjQopRAc9WOGDqpmMjf6tdnd+cVp6 Kbvrdovg3rI7vCWH6jh4NJQk51kTF1O76xpUhEEDhF7oBEnGAR7Vk19ii1KkWqoQZsOh N1Y2L6yYjcqOUmbrid6kSDUgg5ddXcp106ylinsf4jjO0ePEBD3hf21ECLjn0mLjV0Ow t9Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695289020; x=1695893820; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tO07y52ihL4jiW+/YSc6o4oy7K98rV4fDYJiTaFp/cc=; b=ZYXB/uCrFkm1XvOCSxwXcWFyvcZC66a17SJn7xtA5RPtbnF6Ge3OipnGU34ofT02LF 8+wOIH72zZ/gAY3Yy9GdjLfQpqLablSCk9bH+CB6U16GWsLlX9QCtSWXEpUg9kc6TiDr TNMw3pfc2aJMbp4lL7iXCO75WK6ZMhtjOlUWVwi8q13iMjbQmsPNQ7qmPJ7hKDnO6XI7 pXQJMH/KN7rtkn0pVMiy2C5LQCDigRi/78rbNP+vUu6Da7An0QO31mnOsE5e+NgAGjXO t6220ARZyvTJofU1HqBscId+d6Gch/1KbQrQF6WNVY4/3V4poykusg8qyhqC6VsY5eYX onUg== X-Gm-Message-State: AOJu0Yw8WJDz+ke8CJZGVm/22K24pm2XK7jvpnBmdxRH4dn5Dh2pYSvD DpAY1ZMqxsbDmt8vhGe0Cd9fww== X-Google-Smtp-Source: AGHT+IGOsPGLaNytNXaesgM8DKeO7lYi8IWldSKE9SkPDnT2UG04FmyFBfLgnPmFbVLicstMGWgsLQ== X-Received: by 2002:a17:906:ef8c:b0:9ae:4ba4:7983 with SMTP id ze12-20020a170906ef8c00b009ae4ba47983mr3166503ejb.37.1695289020335; Thu, 21 Sep 2023 02:37:00 -0700 (PDT) Received: from hackbox.lan ([86.120.16.169]) by smtp.gmail.com with ESMTPSA id zg22-20020a170907249600b009a5f1d15642sm763085ejb.158.2023.09.21.02.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 02:36:59 -0700 (PDT) From: Abel Vesa To: Abel Vesa , Peng Fan , Mike Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Aisheng Dong , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , Randy Dunlap Subject: [PATCH] clk: imx: Select MXC_CLK for CLK_IMX8QXP Date: Thu, 21 Sep 2023 12:36:47 +0300 Message-Id: <20230921093647.3901752-1-abel.vesa@linaro.org> 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-20230921_023703_932580_658EE78F X-CRM114-Status: GOOD ( 10.84 ) 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 If the i.MX8QXP clock provider is built-in but the MXC_CLK is built as module, build fails: aarch64-linux-ld: drivers/clk/imx/clk-imx8-acm.o: in function `imx8_acm_clk_probe': clk-imx8-acm.c:(.text+0x3d0): undefined reference to `imx_check_clk_hws' Fix that by selecting MXC_CLK in case of CLK_IMX8QXP. Fixes: c2cccb6d0b33 ("clk: imx: add imx8qxp clk driver") Closes: https://lore.kernel.org/all/8b77219e-b59e-40f1-96f1-980a0b2debcf@infradead.org/ Reported-by: Randy Dunlap Signed-off-by: Abel Vesa Reviewed-by: Peng Fan Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- drivers/clk/imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index f6b82e0b9703..db3bca5f4ec9 100644 --- a/drivers/clk/imx/Kconfig +++ b/drivers/clk/imx/Kconfig @@ -96,6 +96,7 @@ config CLK_IMX8QXP depends on (ARCH_MXC && ARM64) || COMPILE_TEST depends on IMX_SCU && HAVE_ARM_SMCCC select MXC_CLK_SCU + select MXC_CLK help Build the driver for IMX8QXP SCU based clocks.