From patchwork Mon Mar 20 09:13:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 72042 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1106877wrt; Mon, 20 Mar 2023 02:18:10 -0700 (PDT) X-Google-Smtp-Source: AK7set8xh0U5ol1i2akIx+QiY7gJbKu7RJTKw/I0raUX0jhYhf3Ni5hdAIY68izFOUSfQmU8vIZP X-Received: by 2002:a17:90b:38c5:b0:23f:c096:7129 with SMTP id nn5-20020a17090b38c500b0023fc0967129mr2448709pjb.26.1679303890048; Mon, 20 Mar 2023 02:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679303890; cv=none; d=google.com; s=arc-20160816; b=V4cVPPgpzQudqrtsJ0BQW6UV6l/kMiBJVDiBZ81wI3Q/ubEa8b8/LoTAX8daaxLyby iWL4ktpAp1nhZp47g997ALHP3Fh4o6ifzr8PihwSFpsE2zm7lb50rWVJhhKtg2ld9Gzz ZagGD66WmPVTWdb1u+wq8JNgfZHk/ifAr8KZ1Bviio4Nstw7AnzeTDcStQi74GaGA88p ReSjoQD2ojA6ehaIRXguNyMNUxbfCGp6mJNybtTIHiuoaOpxGORNXh1r+TiyjY3sQBLT +oOCaigDhsL82qaMRLz9XT4SgFFEa4lTP5evwqGiwU8aG2BxXxL2np7a8OHj3PQdtcS5 ojYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SLFgiq9Y0HfE0m7HgnrCAsFhY4EbP/6RyKK3i8+8gQI=; b=hxrxQEYVAJnWoong2K47l1qD2YAuvSb0/T5PE/aY1zY9C4/k0sVJcIepgALgM3ND5z VOxiZnsIHxwnu8cpSvnNkCFKWQfGCOcbC/ScUKWQkz3nn3feQGfdFG9OaUfZMrjVtPRx j7JNZP4N7ue8cr1ZAkMxqJq+hzI6fp0u37iHLyfFEZ4NUsnQGYJ2bSNzkW1DPuUKyRjZ pXR6dD7VER3dNoeX033d9BBlTlnnqBvGm/16JDR1K3LL1h0JCucwTHd9t2Z75PRL9CQu Q3DDk7/JCt+Ag4JMNXlS1zo9CF3HrwR6ZzlBJWYb6OC+F9zrQCLMkqv2EcGGf7MTtHpl f6Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VZDDQSvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a17090acb9000b0022bb71938casi14878178pju.50.2023.03.20.02.17.57; Mon, 20 Mar 2023 02:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VZDDQSvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbjCTJOc (ORCPT + 99 others); Mon, 20 Mar 2023 05:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbjCTJOF (ORCPT ); Mon, 20 Mar 2023 05:14:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1EC65BBD; Mon, 20 Mar 2023 02:14:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 67292B80DB4; Mon, 20 Mar 2023 09:14:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 157DAC433D2; Mon, 20 Mar 2023 09:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679303640; bh=gHTA93997ac/lT4FWEpkyp00sb8e4oMfl8zZDFoB+68=; h=From:To:Cc:Subject:Date:From; b=VZDDQSvIN70rqjaMoA2za6Lqic4jggpVTfq2CTOaGqBES5jzl/iukA657Bh27rpMu Vhmt+gCKBeij1bhSeSpsXRS4vNxNr2bCOk2Wbv4BBTRVxxk5VkJyjAUNw1wB2bCWwB VnpwI7MEohNBZgHas0hjz6L/F48MCeVRefyOSuIsq5zsHI3crpSzXBX6xTgTwkphmt eRk/ajKdb/djKyl1JoP2YmOp71e4LSVcITs3xAPHzwPrJPNK4Rnw460ZElGAY1I82L PDJDTqTtbs6hg6JjEjSQS+wA/TbuwBEy02fpk6QfXEQBNd4JZQy2fSky7iiyIddTQu YdybK0M5e93Jw== From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Matthias Brugger , Chen-Yu Tsai , AngeloGioacchino Del Regno Cc: Arnd Bergmann , Edward-JW Yang , Miles Chen , Johnson Wang , Fabien Parent , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] clk: mediatek: mt81xx: Ensure fhctl code is available Date: Mon, 20 Mar 2023 10:13:42 +0100 Message-Id: <20230320091353.1918439-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760877755846135195?= X-GMAIL-MSGID: =?utf-8?q?1760877755846135195?= From: Arnd Bergmann Just like in commit eddc63094855 ("clk: mediatek: Ensure fhctl code is available for COMMON_CLK_MT6795"), these three need the shared driver code, otherwise they run into link errors such as: aarch64-linux/bin/aarch64-linux-ld: drivers/clk/mediatek/clk-mt8192-apmixedsys.o: in function `clk_mt8192_apmixed_probe': clk-mt8192-apmixedsys.c:(.text+0x134): undefined reference to `fhctl_parse_dt' Fixes: 45a5cbe05d1f ("clk: mediatek: mt8173: Add support for frequency hopping through FHCTL") Fixes: 4d586e10c428 ("clk: mediatek: mt8192: Add support for frequency hopping through FHCTL") Fixes: da4a82dc67b0 ("clk: mediatek: mt8195: Add support for frequency hopping through FHCTL") Signed-off-by: Arnd Bergmann Reviewed-by: AngeloGioacchino Del Regno --- drivers/clk/mediatek/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index c707c6fe45a3..61e3266d2346 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -478,6 +478,7 @@ config COMMON_CLK_MT8173 tristate "Clock driver for MediaTek MT8173" depends on ARM64 || COMPILE_TEST select COMMON_CLK_MEDIATEK + select COMMON_CLK_MEDIATEK_FHCTL default ARCH_MEDIATEK help This driver supports MediaTek MT8173 basic clocks and clocks @@ -686,6 +687,7 @@ config COMMON_CLK_MT8192 tristate "Clock driver for MediaTek MT8192" depends on ARM64 || COMPILE_TEST select COMMON_CLK_MEDIATEK + select COMMON_CLK_MEDIATEK_FHCTL default ARM64 help This driver supports MediaTek MT8192 basic clocks. @@ -766,6 +768,7 @@ config COMMON_CLK_MT8195 bool "Clock driver for MediaTek MT8195" depends on ARM64 || COMPILE_TEST select COMMON_CLK_MEDIATEK + select COMMON_CLK_MEDIATEK_FHCTL default ARCH_MEDIATEK help This driver supports MediaTek MT8195 clocks.