Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2263021rwr; Fri, 21 Apr 2023 06:44:00 -0700 (PDT) X-Google-Smtp-Source: AKy350aqW7ZIx3TJuGBwPCMYE8ifzqA6TmT8K0QV+tZsxJhuod68wSMNicz8TVzvaadt94sf7TYi X-Received: by 2002:a17:902:e544:b0:1a6:cf4b:4d7d with SMTP id n4-20020a170902e54400b001a6cf4b4d7dmr6178180plf.2.1682084640495; Fri, 21 Apr 2023 06:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682084640; cv=none; d=google.com; s=arc-20160816; b=DK4+zyQ21Vi1+MKpfFpm7u+bcVOYipH8eL7yMKJIe6AwQZRzEpMrZSVA44xRAg5l48 5HsACJ+x9GWmR7Djdj/HSzzU60AkQQyd85PkxMH67TionWj85YQkXQMxFFHRVz5MKIqL MUiXu4Q0ITB9HzqMWDIQEYdq1zZblhMjID6fi4aUr96FHvJzdEQsyNkucK9r56lmUTF9 4SkN5nDgXdlGprZTrL2s869yyf5y0dP9/EosELYDudztPJtRZ1IE4R7L3Rx9DF82NPAT fxw+N6sJi8Dv8zMkabn/SfgyyPNPrziOAIFrSzTlyht1IgNLQ6nINSZBvnXgzc4z6r6E b5xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JDE51zksfO+2BQYs2uxEkBWwzXHikJbqw2bzLyRXwaw=; b=EMuV4Vhf6zfwKK02Tfd+BQzlp0AOcDh/hJ5PE1sH+wnLr4nckSpkzg8ola8qVUY8Se cI8XUnzbGqT0mJEcn7jniOnPv3BOCixUBhBKISO8QUGQmbKou9wIWAxW9YKKMZvnVfGl tkBR8qBmiMWPx+qOTaKwOrz8h/1JfrblTrutiR2/0B6T/tZCd7q+iBWI1q+sdk3gaBdK 5+/9tiFRwQRAdkaZ5yon8nPG5KvvBX/bCBziDMGmUVDRmodR90b3xkD8RaWzDt7xezaS 9n5UYIaXBtX+oUn2ilMTcycgpXERGTfF1fMrkaYk2WUX/8/0kIHM51cj2kVUCsRM3vaV K/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wpGNGkwC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a170903240900b001a6ee332903si4421548plo.347.2023.04.21.06.43.47; Fri, 21 Apr 2023 06:44:00 -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=wpGNGkwC; 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 S231940AbjDUNnM (ORCPT + 99 others); Fri, 21 Apr 2023 09:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232557AbjDUNmx (ORCPT ); Fri, 21 Apr 2023 09:42:53 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309A9118EB for ; Fri, 21 Apr 2023 06:42:20 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-b8f51500a82so2159315276.2 for ; Fri, 21 Apr 2023 06:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682084537; x=1684676537; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JDE51zksfO+2BQYs2uxEkBWwzXHikJbqw2bzLyRXwaw=; b=wpGNGkwCP6qhmDCTaIgu67XqT1Ne8yFuulkw6+VKZDDLlhH/MTjSIyQhwRY9T3goum /oR12owOzVb3UpnwFxZxcN6a8zQ57W5RXkREo7mqJo2O/xt0DWcorbVH2pUIYtA76px9 MJ44uNf6YWHiQryP15EFD2/29KE3jBLjb1a6n9yYiXiXKvRuWnbCyr74FbU0LQZd92zJ 9izLLhcDEVT0XSH8RnybC46qTo2qKlBCPVJ+w68b6UVqdMsJx5r7MOoNrDgojopmlk9g yAAFncbSjRK5C6++USLE/ehJIAyQSwOBAC+79NgJRZgTXLvVhreT61b8LFqvicp1uKbQ PDAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682084537; x=1684676537; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JDE51zksfO+2BQYs2uxEkBWwzXHikJbqw2bzLyRXwaw=; b=WJjqr8EW8fQffnZgCD1jD2f+Rfzsi9ubgqEZLPUXfhVg3xo1iG61tlEvEC0e/hVMZb U6HhWnB9wvxb4nhrIys7Y1RoTFOl5FyR7Sxui6kTm33MCFh2HV71NQRSE8rSPFJUaLvj suu+qA+UX1aMNxSEXOMM8e+N2GBNBpZNpKKNXBv48FRuuc3rb6y7IYsdPN89Gi0AD8wW DxhluFPRbFmX+9TCzPogld1t/OTbxtcIatQkr+/4mgc76E+zHK3291iXgL9VOZwl/QAP 5PTyskLSp84s4hk9T8wueVNpSS89PWf1KgUVT0YB+4o3Or7WYW1fDOr30KDUmBdP4Cbl yDkw== X-Gm-Message-State: AAQBX9cNb2lsJgyH/lv4XklhwXztPzMCMu89Z8yKWlPdvUJ/mKTBr6AI xNdbTAxx8jcm/6LR4dw/+mGuj2biH/NfHuWvyyyP/A== X-Received: by 2002:a25:bc8:0:b0:b92:510a:7320 with SMTP id 191-20020a250bc8000000b00b92510a7320mr2321396ybl.42.1682084537629; Fri, 21 Apr 2023 06:42:17 -0700 (PDT) MIME-Version: 1.0 References: <20230420115520.16472-1-quic_tdas@quicinc.com> In-Reply-To: <20230420115520.16472-1-quic_tdas@quicinc.com> From: Dmitry Baryshkov Date: Fri, 21 Apr 2023 16:42:06 +0300 Message-ID: Subject: Re: [PATCH] clk: qcom: camcc-sc7180: Add parent dependency to all camera GDSCs To: Taniya Das Cc: Stephen Boyd , Bjorn Andersson , Michael Turquette , Andy Gross , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, quic_skakitap@quicinc.com, quic_cponnapa@quicinc.com Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Apr 2023 at 14:55, Taniya Das wrote: > > Mark titan_top_gdsc as parent to all other camera GDSCs. Please expand the commit message. Your text describes what the patch does, but it can be observed from the patch itself. Please describe why it is done. > > Signed-off-by: Taniya Das > --- > drivers/clk/qcom/camcc-sc7180.c | 19 ++++++++++++------- > 1 file changed, 12 insertions(+), 7 deletions(-) > > diff --git a/drivers/clk/qcom/camcc-sc7180.c b/drivers/clk/qcom/camcc-sc7180.c > index e2b4804695f3..8a4ba7a19ed1 100644 > --- a/drivers/clk/qcom/camcc-sc7180.c > +++ b/drivers/clk/qcom/camcc-sc7180.c > @@ -1480,12 +1480,21 @@ static struct clk_branch cam_cc_sys_tmr_clk = { > }, > }; > > +static struct gdsc titan_top_gdsc = { > + .gdscr = 0xb134, > + .pd = { > + .name = "titan_top_gdsc", > + }, > + .pwrsts = PWRSTS_OFF_ON, > +}; > + > static struct gdsc bps_gdsc = { > .gdscr = 0x6004, > .pd = { > .name = "bps_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .parent = &titan_top_gdsc.pd, > .flags = HW_CTRL, > }; > > @@ -1495,6 +1504,7 @@ static struct gdsc ife_0_gdsc = { > .name = "ife_0_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .parent = &titan_top_gdsc.pd, > }; > > static struct gdsc ife_1_gdsc = { > @@ -1503,6 +1513,7 @@ static struct gdsc ife_1_gdsc = { > .name = "ife_1_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .parent = &titan_top_gdsc.pd, > }; > > static struct gdsc ipe_0_gdsc = { > @@ -1512,15 +1523,9 @@ static struct gdsc ipe_0_gdsc = { > }, > .pwrsts = PWRSTS_OFF_ON, > .flags = HW_CTRL, > + .parent = &titan_top_gdsc.pd, > }; > > -static struct gdsc titan_top_gdsc = { > - .gdscr = 0xb134, > - .pd = { > - .name = "titan_top_gdsc", > - }, > - .pwrsts = PWRSTS_OFF_ON, > -}; > > static struct clk_hw *cam_cc_sc7180_hws[] = { > [CAM_CC_PLL2_OUT_EARLY] = &cam_cc_pll2_out_early.hw, > -- > 2.17.1 > -- With best wishes Dmitry