From patchwork Wed Oct 26 16:18:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 11328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp371229wru; Wed, 26 Oct 2022 09:37:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Z4POfQAV5FzkGY2e5CnsYGc5BopQaX+nca7+pWDi1xIGys8B5elb976TQ51Bvkxws1UFz X-Received: by 2002:a17:907:2c4a:b0:78d:f5c2:70d1 with SMTP id hf10-20020a1709072c4a00b0078df5c270d1mr38877709ejc.198.1666802236834; Wed, 26 Oct 2022 09:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666802236; cv=none; d=google.com; s=arc-20160816; b=VcGJ+shkBk7IIocxs9uCRaPbf4niBb4NZBoUFzV/9qelDEbDh2TofEMZMRxJHXzC8m 79wqNXr2yWa3ElXDdJ5Vn3Ki/BzLHSAcN056F5WrqqQt8hXlLznIYy8auCUUXRXwPKd+ vqTVeeSK28FmO8XxlJy46mv0xrw5HsPFAZtaMA660fXP+Qg7H1P7DPaW60I7jREGwnNR juDoRkMATso0MGqkoZfA2i4JUzj8FhqF6vXh3OBkKGwrLIUynyrUhFk/bgxGRjHAV2Jx nUFPaTMftyW7UZlvAL4pHYqBIeIAgTn3/siNmRglPFOl6eWqgllKK84oaMQXhIMcv7BK fHTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3Sbs3CGBXJ1W6tlgr+E6WWx0EaLoDMOFwaUawkV6foA=; b=dUeunuIJfYlPhO6weQeIxW86dBEZ1WA2GiTpfqk6kXrD7FgrikF9yYzyJ1eXJ/Wu8m lqyeZpqcJmj4sdnkVmg6CqW7T5111AaPrN4IwzFC9jJWWCco4nQ9iERzadoqE0IcsAFh qdQlYErrTS/jgCJzK4mZ/xgW5dENCZlkuqOhhn484o6w1nw4SsptOAgNpLxAHLLf0uwo 89OWRLgxvP/wG5JpLaroazFjEZxI0Ww7SMTkj6v6X9MUfSd3Z2JcxUgomdK3AFLxiq8/ H1I57iwzYsxPLIxq3czJ9OstCW5BLUq7GljFRdxWNOdj4N2oFOIF9dPqRuA3BDakkUv1 o29w== 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 r24-20020a170906549800b0078d4811335dsi5283670ejo.194.2022.10.26.09.36.51; Wed, 26 Oct 2022 09:37:16 -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 S234697AbiJZQS1 (ORCPT + 99 others); Wed, 26 Oct 2022 12:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234342AbiJZQSY (ORCPT ); Wed, 26 Oct 2022 12:18:24 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD2710C4F6; Wed, 26 Oct 2022 09:18:20 -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 1onj6d-0006SF-Cg; Wed, 26 Oct 2022 18:18:15 +0200 Date: Wed, 26 Oct 2022 17:18:07 +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 v2] clk: mediatek: fix dependency of MT7986 ADC clocks Message-ID: <5e55012567da74870e1fb2edc2dc513b5821e523.1666801017.git.daniel@makrotopia.org> References: <9bde77be-f4ec-11e7-e645-7c4465bcf6db@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9bde77be-f4ec-11e7-e645-7c4465bcf6db@collabora.com> 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?1747768821940880775?= 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. Fixes: ec97d23c8e22 ("clk: mediatek: add mt7986 clock support") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Daniel Golle --- v2: add Fixes: tag 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 */