From patchwork Wed Jul 21 15:11:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12391255 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=-20.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 E3F0EC636C9 for ; Wed, 21 Jul 2021 15:11:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCAE66121E for ; Wed, 21 Jul 2021 15:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239453AbhGUObE (ORCPT ); Wed, 21 Jul 2021 10:31:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239465AbhGUObD (ORCPT ); Wed, 21 Jul 2021 10:31:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E992E606A5; Wed, 21 Jul 2021 15:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626880300; bh=lT6LMjdaLVJA4cajik2AMwohdvMr2in2CFISEuJVul4=; h=From:To:Cc:Subject:Date:From; b=NfJA9lnPJBfw7hjUhimDXuxhhQsXpkTew6X3wErAq9Zc0CsjpIaENNKhzov86ANlK h7Gr/ff4aIGtoo4uKdXF2IXIUIrCz5Z96UBNC6LkHNn5ocKXFYCUvZ04BVwBnHCs53 VVc2k7dkZe0mGDss3CHp5CwzjHvUfr2XPvjgxqkY3SeSAdQJCbEZrI/dymByU0Iro5 UQwbNy9L7nL0W1PFDFQtckH7vG9AF8cn7qKW+YqQTILtbb8T9mFLCe/TKNcHQo4EF9 RbQGIvlvBIMzoWIHpZEcxMENNqpRruD6+aF2dBlS1Qwp95iOzpZL8g9Ca3KkTuu84Y X/yUx5KYPo9VQ== From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Dongjiu Geng Cc: Arnd Bergmann , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: hisilicon: hi3559A: select CONFIG_RESET_HISI Date: Wed, 21 Jul 2021 17:11:31 +0200 Message-Id: <20210721151136.2060107-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Arnd Bergmann The reset functions are in a library that has to be selected for each driver using them: aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_remove': clk-hi3559a.c:(.text+0x1c8): undefined reference to `hisi_reset_exit' clk-hi3559a.c:(.text+0x1c8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hisi_reset_exit' aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_probe': clk-hi3559a.c:(.text+0x284): undefined reference to `hisi_reset_init' clk-hi3559a.c:(.text+0x284): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hisi_reset_init' aarch64-linux-ld: clk-hi3559a.c:(.text+0x2e8): undefined reference to `hisi_reset_exit' clk-hi3559a.c:(.text+0x2e8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hisi_reset_exit' Add the select to 3559 as well. Fixes: 6c81966107dc ("clk: hisilicon: Add clock driver for hi3559A SoC") Signed-off-by: Arnd Bergmann --- drivers/clk/hisilicon/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig index 5ecc37aaa118..c1ec75aa4ccd 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -18,6 +18,7 @@ config COMMON_CLK_HI3519 config COMMON_CLK_HI3559A bool "Hi3559A Clock Driver" depends on ARCH_HISI || COMPILE_TEST + select RESET_HISI default ARCH_HISI help Build the clock driver for hi3559a.