Message ID | 20221027123432.1818530-5-robert.foss@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp207885wru; Thu, 27 Oct 2022 05:43:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ndaeaWvdtZganmdZvRdnbCcVTXKUjnXGaVaOxRu4JvMTh9G+tbuUKulu8up6ZjtJr2kTX X-Received: by 2002:a62:1c48:0:b0:56b:daf5:255a with SMTP id c69-20020a621c48000000b0056bdaf5255amr20062865pfc.44.1666874637946; Thu, 27 Oct 2022 05:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666874637; cv=none; d=google.com; s=arc-20160816; b=Xc5iAqQWvdIjS+04wKEsQO+V3Xce/bUbqFIjkJHo05sDzHdl2eQ//q4c5eqw2B5vz9 nkWB05PhD99kG4SyLXdeJUWhMPuJR7wvkCr9hpk3gsTFma5zAiAt7NTFpmrktqdLKzxn 6JYXyI61t6feKujBIyZmog06Ix5yD2pbnSUEILX4iIfnu3pGEEu226g/iyWom1MEjMDw pKi4+YuonRdIk7JJNCuCo9BNhgevfJ1DTYGb5/JHnLKn+c9d6zUlRYjVLQ8QYlMHoGEY 2PnZxZ1X5mw0nlmgAf8Lw8thwEhN/Ycz/VzLyDBbmC/+BxMp2RJAugQzu3vgddGCtyNG ZgEw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ixsyTYSU3qrk9nu6zgLYYDmntPbxw0EqXI+jxfXWgbg=; b=VvdU10CSM/Y6/p/NsHcx/ql0WKvxq4dbyDbiA3G/2H2jvJyt0CRQlS9/8ctsqgZMye 1jMiLMga93RPRQaNx+BweHGD7VQxJfrSv4YiNEnQLKQ3Hl824mrZFhUoPK5dGu+j31du wWyXy7YvLWYUvgCRfFuXd6tpugfCKp++NjNDXGnWcLCTvW1ttRn9NYnalLlV8UXfddxn SZtUjEuFYhdKNswQdSYzIzh5oVd51WeBHYlA1Qv274WvF3noqb7JktcKMdlPRen/Yacm K7b5AgN6TDmXf3yHvaf1R5+lL/5pfqbJYIAI1Ko6/kTNx3KXKQXGAwsyTcKnnUSUV7wa AL7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eGI+ngho; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a17090a420e00b0020579d99c4dsi1546877pjg.138.2022.10.27.05.43.45; Thu, 27 Oct 2022 05:43:57 -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=@linaro.org header.s=google header.b=eGI+ngho; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234672AbiJ0Mf1 (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Thu, 27 Oct 2022 08:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235720AbiJ0MfN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Oct 2022 08:35:13 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F325933E2B for <linux-kernel@vger.kernel.org>; Thu, 27 Oct 2022 05:35:10 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id v27so2483053eda.1 for <linux-kernel@vger.kernel.org>; Thu, 27 Oct 2022 05:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ixsyTYSU3qrk9nu6zgLYYDmntPbxw0EqXI+jxfXWgbg=; b=eGI+nghoKIXTvxIUbAMX/UGn0FUTy6saar5V+Xm0lbVg8DFfBppUhTHZTI4cZfKwsi udcabToxL2QqymNMtZ84C8e+33nabNHXvzXGDoHEwDUP8fzIu7MGXCbCXZAzV7lRE5Rq 6Bhedbx3qkoMuG54hlwnamXHE+9eQpsUL6MUiBSwidzUYO9IauyfuZdWBzezNr+VvPMl 2mbko/nxXeXBW+TCxK7o1w5e6UaiDymbLV9lzzCbLzZyPkDo50HDGLsm7lpyuuxp6IPs wlGTQj636LIZV/bJE9Tnf3dpch3CCGBeQ+7fJ8A36s+fRTozI/oNKcjxbreKCzsOZbzW TxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ixsyTYSU3qrk9nu6zgLYYDmntPbxw0EqXI+jxfXWgbg=; b=oBpqCP6z1K8qOb4rbvSt15O5j8cMne9l0IRHXCU1CowWxEAW4sefwQgh/+9wLKzBqD t/9eyyqUvPzfd8K/ubVNA+oZ158CKOWRMQ0Xh/fJjtNvHMh7TgZlcFwp+j96+M1bG57B g7JRegRy4/PcF9nuWh1Qyo671anl/ltyqMKC4zcmKRF4AT9ZP16b479h9GdXHVfI2Zkh uhvqrv6lvMM1fkzTVSdmqFSFP2oTQyeSLUzNmm1ppa4IQUW8FJfM1/fpjFO6FHBLdD+0 VrCmnw5TlcDTbiwerGCPLT4fnO23eJAhENaxHgY9WfpE7HzVTC0kQoQeJ7KT8oCafwc/ /AbQ== X-Gm-Message-State: ACrzQf0/V8J70NeGksjR8KEX/+PBW5UOe2r1pfhxzEA/GkYn8SaOxPha klEIuHFvTCg7cdl6Sy0sOGqmQg== X-Received: by 2002:aa7:ce09:0:b0:461:5406:20e4 with SMTP id d9-20020aa7ce09000000b00461540620e4mr29636811edv.5.1666874109556; Thu, 27 Oct 2022 05:35:09 -0700 (PDT) Received: from prec5560.. (freifunk-gw.bsa1-cpe1.syseleven.net. [176.74.57.43]) by smtp.gmail.com with ESMTPSA id p22-20020aa7d316000000b00461c1804cdasm942868edq.3.2022.10.27.05.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 05:35:07 -0700 (PDT) From: Robert Foss <robert.foss@linaro.org> To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson <quic_bjorande@quicinc.com>, dmitry.baryshkov@linaro.org, Jonathan Marek <jonathan@marek.ca> Cc: Robert Foss <robert.foss@linaro.org> Subject: [PATCH v1 5/5] clk: qcom: dispcc-sm8250: Disable link_div_clk_src for sm8150 Date: Thu, 27 Oct 2022 14:34:32 +0200 Message-Id: <20221027123432.1818530-5-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221027123432.1818530-1-robert.foss@linaro.org> References: <20221027123432.1818530-1-robert.foss@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747844740477026260?= X-GMAIL-MSGID: =?utf-8?q?1747844740477026260?= |
Series |
[v1,1/5] clk: qcom: dispcc-sm8250: Disable EDP_GTC for sm8350
|
|
Commit Message
Robert Foss
Oct. 27, 2022, 12:34 p.m. UTC
SM8150 does not have any of the link_div_clk_src clocks, so
let's disable them for this SoC.
Signed-off-by: Robert Foss <robert.foss@linaro.org>
---
drivers/clk/qcom/dispcc-sm8250.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On 27/10/2022 15:34, Robert Foss wrote: > SM8150 does not have any of the link_div_clk_src clocks, so > let's disable them for this SoC. > > Signed-off-by: Robert Foss <robert.foss@linaro.org> > --- > drivers/clk/qcom/dispcc-sm8250.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c > index d2aaa44ed3d4..f6f719616f63 100644 > --- a/drivers/clk/qcom/dispcc-sm8250.c > +++ b/drivers/clk/qcom/dispcc-sm8250.c > @@ -1289,6 +1289,10 @@ static int disp_cc_sm8250_probe(struct platform_device *pdev) > disp_cc_pll1_config.config_ctl_hi1_val = 0x00000024; > disp_cc_pll1_config.user_ctl_hi1_val = 0x000000D0; > disp_cc_pll1_init.ops = &clk_alpha_pll_trion_ops; > + > + disp_cc_sm8250_clocks[DISP_CC_MDSS_DP_LINK1_DIV_CLK_SRC] = NULL; > + disp_cc_sm8250_clocks[DISP_CC_MDSS_DP_LINK_DIV_CLK_SRC] = NULL; > + disp_cc_sm8250_clocks[DISP_CC_MDSS_EDP_LINK_DIV_CLK_SRC] = NULL; We also have to fix link_intf clocks: disp_cc_mdss_dp_link_intf_clk.clkr.hw.init->parent_hws[0] = &disp_cc_mdss_dp_link_clk_src.clkr.hw; disp_cc_mdss_dp_link1_intf_clk.clkr.hw.init->parent_hws[0] = &disp_cc_mdss_dp_link1_clk_src.clkr.hw; disp_cc_mdss_edp_link_intf_clk.clkr.hw.init->parent_hws[0] = &disp_cc_mdss_edp_link_clk_src.clkr.hw; > } else if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8350-dispcc")) { > static struct clk_rcg2 * const rcgs[] = { > &disp_cc_mdss_byte0_clk_src,
diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c index d2aaa44ed3d4..f6f719616f63 100644 --- a/drivers/clk/qcom/dispcc-sm8250.c +++ b/drivers/clk/qcom/dispcc-sm8250.c @@ -1289,6 +1289,10 @@ static int disp_cc_sm8250_probe(struct platform_device *pdev) disp_cc_pll1_config.config_ctl_hi1_val = 0x00000024; disp_cc_pll1_config.user_ctl_hi1_val = 0x000000D0; disp_cc_pll1_init.ops = &clk_alpha_pll_trion_ops; + + disp_cc_sm8250_clocks[DISP_CC_MDSS_DP_LINK1_DIV_CLK_SRC] = NULL; + disp_cc_sm8250_clocks[DISP_CC_MDSS_DP_LINK_DIV_CLK_SRC] = NULL; + disp_cc_sm8250_clocks[DISP_CC_MDSS_EDP_LINK_DIV_CLK_SRC] = NULL; } else if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8350-dispcc")) { static struct clk_rcg2 * const rcgs[] = { &disp_cc_mdss_byte0_clk_src,