linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Taniya Das <tdas@codeaurora.org>, Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Michael Turquette <mturquette@baylibre.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH v1 13/15] clk: qcom: videocc-sdm845: remove unsupported clock sources
Date: Fri, 2 Apr 2021 04:49:37 +0300	[thread overview]
Message-ID: <c92f7a04-f010-4c63-4b39-482a5581317a@linaro.org> (raw)
In-Reply-To: <21bc5248-57b8-243d-300f-1bc39162c37f@codeaurora.org>

On 02/04/2021 04:23, Taniya Das wrote:
> Hi Dmitry,
> 
> On 3/25/2021 4:41 PM, Dmitry Baryshkov wrote:
>> video_pll0_out_even/_odd are not supported neither in the upstream nor
>> in the downstream kernels, so drop those clock sources.
>>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> ---
>>   drivers/clk/qcom/videocc-sdm845.c | 8 +-------
>>   1 file changed, 1 insertion(+), 7 deletions(-)
>>
>> diff --git a/drivers/clk/qcom/videocc-sdm845.c 
>> b/drivers/clk/qcom/videocc-sdm845.c
>> index 5d6a7724a194..7153f044504f 100644
>> --- a/drivers/clk/qcom/videocc-sdm845.c
>> +++ b/drivers/clk/qcom/videocc-sdm845.c
>> @@ -21,24 +21,18 @@
>>   enum {
>>       P_BI_TCXO,
>>       P_CORE_BI_PLL_TEST_SE,
>> -    P_VIDEO_PLL0_OUT_EVEN,
>>       P_VIDEO_PLL0_OUT_MAIN,
>> -    P_VIDEO_PLL0_OUT_ODD,
>>   };
>>   static const struct parent_map video_cc_parent_map_0[] = {
>>       { P_BI_TCXO, 0 },
>>       { P_VIDEO_PLL0_OUT_MAIN, 1 },
>> -    { P_VIDEO_PLL0_OUT_EVEN, 2 },
>> -    { P_VIDEO_PLL0_OUT_ODD, 3 },
> 
> These are supported from the design, please do not remove them. It is 
> just that in SW currently it is not being used.
> But SW can decide to use them as they want. As said earlier these are 
> defined in the HW plans and thus do not want them to be updated manually 
> to create a mismatch.

The problem arises during conversion of these drivers to use parent_data 
instead of parent_names. You see, video_pll0_odd/_even are clocks which 
should be referenced using .hw (and thus defined inside the videocc 
driver) as we do for "video_pll0" parent. However there are no clk_hw 
entities defined for those clocks. For now I'd just use the { .name = 
video_pll0_out_odd" } entry for those clocks, however I still think this 
is not correct.

> 
>>       { P_CORE_BI_PLL_TEST_SE, 4 },
>>   };
>>   static const char * const video_cc_parent_names_0[] = {
>>       "bi_tcxo",
>>       "video_pll0",
>> -    "video_pll0_out_even",
>> -    "video_pll0_out_odd",
>>       "core_bi_pll_test_se",
>>   };
>> @@ -79,7 +73,7 @@ static struct clk_rcg2 video_cc_venus_clk_src = {
>>       .clkr.hw.init = &(struct clk_init_data){
>>           .name = "video_cc_venus_clk_src",
>>           .parent_names = video_cc_parent_names_0,
>> -        .num_parents = 5,
>> +        .num_parents = 3,
>>           .flags = CLK_SET_RATE_PARENT,
>>           .ops = &clk_rcg2_shared_ops,
>>       },
>>
> 


-- 
With best wishes
Dmitry

  parent reply	other threads:[~2021-04-02  1:49 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25 11:11 [PATCH v1 00/15] clk: qcom: cleanup sm8250/sdm845/sc7180 clock drivers Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 01/15] clk: qcom: dispcc-sc7180: drop unused enum entries Dmitry Baryshkov
2021-04-02  1:19   ` Taniya Das
2021-03-25 11:11 ` [PATCH v1 02/15] clk: qcom: dispcc-sm8250: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 03/15] clk: qcom: gcc-sm8250: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 04/15] clk: qcom: gpucc-sm8150: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 05/15] clk: qcom: gpucc-sm8250: " Dmitry Baryshkov
2021-04-02  1:18   ` Taniya Das
2021-03-25 11:11 ` [PATCH v1 06/15] clk: qcom: videocc-sc7180: " Dmitry Baryshkov
2021-03-27  1:48   ` Taniya Das
2021-03-27  8:13     ` Dmitry Baryshkov
     [not found]       ` <161730706709.2260335.8947402948263904863@swboyd.mtv.corp.google.com>
2021-04-01 20:58         ` Dmitry Baryshkov
2021-04-01 23:06           ` Stephen Boyd
2021-04-02  1:14       ` Taniya Das
2021-03-25 11:11 ` [PATCH v1 07/15] clk: qcom: videocc-sm8150: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 08/15] clk: qcom: videocc-sm8250: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 09/15] clk: qcom: dispcc-sdm845: convert to parent data Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 10/15] clk: qcom: gpucc-sdm845: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 11/15] clk: qcom: gpucc-sdm845: get rid of the test clock Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 12/15] clk: qcom: dispcc-sdm845: " Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 13/15] clk: qcom: videocc-sdm845: remove unsupported clock sources Dmitry Baryshkov
2021-04-02  1:23   ` Taniya Das
2021-04-02  1:32     ` Dmitry Baryshkov
2021-04-02  1:49     ` Dmitry Baryshkov [this message]
2021-04-02 17:34       ` Stephen Boyd
2021-04-02 20:01         ` Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 14/15] clk: qcom: videocc-sdm845: convert to parent data Dmitry Baryshkov
2021-03-25 11:11 ` [PATCH v1 15/15] clk: qcom: videocc-sdm845: get rid of the test clock Dmitry Baryshkov

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=c92f7a04-f010-4c63-4b39-482a5581317a@linaro.org \
    --to=dmitry.baryshkov@linaro.org \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    --cc=tdas@codeaurora.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;
as well as URLs for NNTP newsgroup(s).