From patchwork Thu Oct 20 19:52:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 6374 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp296121wrr; Thu, 20 Oct 2022 12:56:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61WaHPLpEaeWsQzGuqWGxpsGYnXIhS6N8dpQHci/IOMjq8TAaRLo7/skJGPOO9Mu2DWyqy X-Received: by 2002:a17:907:2cf1:b0:78d:cafc:caba with SMTP id hz17-20020a1709072cf100b0078dcafccabamr12498044ejc.154.1666295781983; Thu, 20 Oct 2022 12:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666295781; cv=none; d=google.com; s=arc-20160816; b=D6myIEB1b0vTNi3UMnVfIaNGohsCWKKL9JBpO7TgghMk23G41YvcgRD7nmw71aNPZt Fv3i3cQq8WL09kR4K4Z2Ep5hjWfMeHQTNxqJkyMJh2LX/tByhbEczeY2psyY77/KqFc6 6WJw/3h5M1hrGl78V+1gD2Xh8hWuq950qlWfKoO+NQXRvVfG2ObjPSb4JoshLOifV2CG 2cyAoqrTXZmTNNiyL5/BjGZE/rGjanzmaRk01ePQawnRjc+C2W6/BiVUA4bzed0bNp7g mOjf/bhLnEZRCQEYnjlP0cJ/jaWEFQJqNHvBsWl5Wx5SQlaYbyZOtHhvnpwQSAuYB7iN R16A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=IRvIPOd6zgemYFP/0K9JWH6K9lRA5CJhUXIwBjaqrRI=; b=v8sXTBHu8OfLhbZJSbENhsZ8opKlj3gxoEJRzqE+50uJM70rmYhEddTwHSEJA3rakN iJY3EugATNch9oDabdnd0qphIvzr/cHKyWlnuOQiHFV/JXKOxrMLIBqDt8UTvZb9vxRw GBLCDDO/gZByI8zjvmj2CqqS3fT5LbVrQWe52ywChE4ri6o74nbpyAbV/BHyBitC/rD7 gHtFOndquHGvZo8Tkh7jJvyo9afLDMiczAdL62iqPLIT7EUIfq4fwhThwSLCF7uK142z NcKSbz2YH+8pJkWIsk9KO3LGwSKuuQRLdrIR/Sz3hl3AAIyHNyMV5E3lcegFHg3/yYG/ GrpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js20-20020a17090797d400b00798f675107esi1329409ejc.655.2022.10.20.12.55.57; Thu, 20 Oct 2022 12:56:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbiJTTxF (ORCPT + 99 others); Thu, 20 Oct 2022 15:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbiJTTxD (ORCPT ); Thu, 20 Oct 2022 15:53:03 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C2AB211293; Thu, 20 Oct 2022 12:53:02 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1olbb8-0005vb-A5; Thu, 20 Oct 2022 21:52:58 +0200 Date: Thu, 20 Oct 2022 20:52:52 +0100 From: Daniel Golle To: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Turquette , Stephen Boyd , Matthias Brugger Cc: Sam Shih , Miles Chen , AngeloGioacchino Del Regno , Chen-Yu Tsai Subject: [PATCH] clk: mediatek: fix dependency of MT7986 ADC clocks Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1747237766081200211?= X-GMAIL-MSGID: =?utf-8?q?1747237766081200211?= It seems like CLK_INFRA_ADC_FRC_CK always need to be enabled for CLK_INFRA_ADC_26M_CK to work. Instead of adding this dependency to the mtk-thermal and mt6577_auxadc drivers, add dependency to the clock driver clk-mt7986-infracfg.c. Suggested-by: AngeloGioacchino Del Regno Signed-off-by: Daniel Golle Reviewed-by: AngeloGioacchino Del Regno --- drivers/clk/mediatek/clk-mt7986-infracfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7986-infracfg.c b/drivers/clk/mediatek/clk-mt7986-infracfg.c index d90727a53283c7..49666047bf0ed5 100644 --- a/drivers/clk/mediatek/clk-mt7986-infracfg.c +++ b/drivers/clk/mediatek/clk-mt7986-infracfg.c @@ -153,7 +153,7 @@ static const struct mtk_gate infra_clks[] = { 18), GATE_INFRA1(CLK_INFRA_MSDC_66M_CK, "infra_msdc_66m", "infra_sysaxi_d2", 19), - GATE_INFRA1(CLK_INFRA_ADC_26M_CK, "infra_adc_26m", "csw_f26m_sel", 20), + GATE_INFRA1(CLK_INFRA_ADC_26M_CK, "infra_adc_26m", "infra_adc_frc", 20), GATE_INFRA1(CLK_INFRA_ADC_FRC_CK, "infra_adc_frc", "csw_f26m_sel", 21), GATE_INFRA1(CLK_INFRA_FBIST2FPC_CK, "infra_fbist2fpc", "nfi1x_sel", 23), /* INFRA2 */