public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Taniya Das <quic_tdas@quicinc.com>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org, quic_jkona@quicinc.com,
	Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: Re: [PATCH 04/13] clk: qcom: gpucc-sa8775p: Remove the CLK_IS_CRITICAL and ALWAYS_ON flags
Date: Sun, 2 Jun 2024 17:28:02 +0200	[thread overview]
Message-ID: <fa7dc574-e431-4a29-951d-1aaf4b86c37d@linaro.org> (raw)
In-Reply-To: <woi4vzsc2mgug26rluvzt6ayoawfsus6ow2kqnmfnnqlwf2lty@sirpsaf2anuz>

On 02/06/2024 06:12, Bjorn Andersson wrote:
> On Fri, May 31, 2024 at 11:59:04AM GMT, Krzysztof Kozlowski wrote:
>> On 31/05/2024 11:02, Taniya Das wrote:
>>> The gpu clocks and GDSC have been marked critical from the clock driver
>>> which is not desired for functionality. Hence remove the CLK_IS_CRITICAL
>>> and ALWAYS_ON flags.
>>>
>>> Fixes: 0afa16afc36d ("clk: qcom: add the GPUCC driver for sa8775p")
>>> Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
>>> ---
>>>  drivers/clk/qcom/gpucc-sa8775p.c | 27 +++++++++++----------------
>>>  1 file changed, 11 insertions(+), 16 deletions(-)
>>>
>>> diff --git a/drivers/clk/qcom/gpucc-sa8775p.c b/drivers/clk/qcom/gpucc-sa8775p.c
>>> index 1167c42da39d..f965babf4330 100644
>>> --- a/drivers/clk/qcom/gpucc-sa8775p.c
>>> +++ b/drivers/clk/qcom/gpucc-sa8775p.c
>>> @@ -1,6 +1,6 @@
>>>  // SPDX-License-Identifier: GPL-2.0-only
>>>  /*
>>> - * Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc. All rights reserved.
>>> + * Copyright (c) 2021-2022, 2024, Qualcomm Innovation Center, Inc. All rights reserved.
>>
>> That's not a fix.
>>
>>>   * Copyright (c) 2023, Linaro Limited
>>>   */
>>>  
>>> @@ -280,7 +280,7 @@ static struct clk_branch gpu_cc_ahb_clk = {
>>>  				&gpu_cc_hub_ahb_div_clk_src.clkr.hw,
>>>  			},
>>>  			.num_parents = 1,
>>> -			.flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
>>> +			.flags = CLK_SET_RATE_PARENT,
>>
>> I fail to see why this is a fix. They were marked as critical on
>> purpose. It was needed, wasn't it?
>>
>> Provide jsutification for commits, not just sprinkle Fixes tag all around.
>>
> 
> This is indeed a fix, as marking clocks CLK_IS_CRITICAL prevents any
> power-domain associated with the clock controller from suspending. In
> other words, the current behavior is broken.
> 
> @Taniya, "not desired for functionality" does not carry any useful
> information explaining why this change is made. Please update the commit
> message.

Then please provide some sort of bug explanation in the commit msg. I
assume the clocks were marked critical to solve some particular problem,
e.g. missing parents, so marking this as fix sounds like both incorrect
and error-prone when backported. Maybe that's not the case, so this is
why there is commit msg to explain such details...

Best regards,
Krzysztof


  reply	other threads:[~2024-06-02 15:28 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31  9:02 [PATCH 00/13] Add support for SA8775P Multimedia clock controllers Taniya Das
2024-05-31  9:02 ` [PATCH 01/13] clk: qcom: gcc-sa8775p: Remove support for UFS hw ctl clocks Taniya Das
2024-05-31  9:57   ` Krzysztof Kozlowski
2024-06-10  8:51     ` Taniya Das
2024-05-31  9:02 ` [PATCH 02/13] clk: qcom: gcc-sa8775p: Update the GDSC wait_val fields and flags Taniya Das
2024-05-31 13:22   ` Konrad Dybcio
2024-06-10  8:57     ` Taniya Das
2024-06-13 17:12       ` Konrad Dybcio
2024-05-31  9:02 ` [PATCH 03/13] clk: qcom: gcc-sa8775p: Set FORCE_MEM_CORE_ON for gcc_ufs_phy_ice_core_clk Taniya Das
2024-05-31  9:57   ` Krzysztof Kozlowski
2024-06-10  9:00     ` Taniya Das
2024-05-31  9:02 ` [PATCH 04/13] clk: qcom: gpucc-sa8775p: Remove the CLK_IS_CRITICAL and ALWAYS_ON flags Taniya Das
2024-05-31  9:59   ` Krzysztof Kozlowski
2024-05-31 17:46     ` Trilok Soni
2024-06-02  4:08       ` Bjorn Andersson
2024-06-02 17:58         ` Trilok Soni
2024-06-02  4:12     ` Bjorn Andersson
2024-06-02 15:28       ` Krzysztof Kozlowski [this message]
2024-06-10  9:10         ` Taniya Das
2024-06-10  9:06       ` Taniya Das
2024-05-31  9:02 ` [PATCH 05/13] clk: qcom: gpucc-sa8775p: Park RCG's clk source at XO during disable Taniya Das
2024-05-31 13:23   ` Konrad Dybcio
2024-06-10  9:11     ` Taniya Das
2024-06-10 18:14       ` Dmitry Baryshkov
2024-06-12 10:30         ` Taniya Das
2024-06-12 10:47           ` Dmitry Baryshkov
2024-06-21 12:06         ` Taniya Das
2024-05-31  9:02 ` [PATCH 06/13] clk: qcom: gpucc-sa8775p: Update wait_val fields for GPU GDSC's Taniya Das
2024-05-31 13:23   ` Konrad Dybcio
2024-05-31  9:02 ` [PATCH 07/13] dt-bindings: clock: qcom: Add SA8775P video clock controller Taniya Das
2024-05-31 13:59   ` Krzysztof Kozlowski
2024-06-10  9:22     ` Taniya Das
2024-05-31  9:02 ` [PATCH 08/13] clk: qcom: Add support for Video clock controller on SA8775P Taniya Das
2024-05-31  9:02 ` [PATCH 09/13] dt-bindings: clock: qcom: Add SA8775P camera controller Taniya Das
2024-05-31 14:10   ` Krzysztof Kozlowski
2024-06-10  9:23     ` Taniya Das
2024-05-31  9:02 ` [PATCH 10/13] clk: qcom: Add support for Camera Clock Controller on SA8775P Taniya Das
2024-05-31  9:02 ` [PATCH 11/13] dt-bindings: clock: qcom: Add SA8775P display controller Taniya Das
2024-05-31 10:32   ` Rob Herring (Arm)
2024-05-31  9:02 ` [PATCH 12/13] clk: qcom: Add support for Display Controllers on SA8775P Taniya Das
2024-05-31  9:02 ` [PATCH 13/13] arm64: dts: qcom: Add support for multimedia clock controllers Taniya Das
2024-06-02  4:17   ` Bjorn Andersson
2024-06-10  9:28     ` Taniya Das
2024-06-02  4:22 ` [PATCH 00/13] Add support for SA8775P Multimedia " Bjorn Andersson
2024-06-10  9:27   ` Taniya Das

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa7dc574-e431-4a29-951d-1aaf4b86c37d@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=andersson@kernel.org \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_jkona@quicinc.com \
    --cc=quic_tdas@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox