Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2028732rwd; Fri, 9 Jun 2023 05:52:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dHlGpdDRxo+LaWqBQxQvPVW6WYW/dEh3oYbhp9KpQEzjGX1nbtW+otxSLVslihTFLH9EB X-Received: by 2002:a05:6a00:198e:b0:656:c7b2:876f with SMTP id d14-20020a056a00198e00b00656c7b2876fmr1389864pfl.14.1686315134486; Fri, 09 Jun 2023 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686315134; cv=none; d=google.com; s=arc-20160816; b=lqCx6vpFwnSYwkyDCZWmiURc+SK9WinVB4ZHOb5Olnk+ysJv2bhQUO/XuaAt1T2vMA MngFraT1huLz875j6HHygJb/rLTmo49jDyOl4nJj/MQISRDScq7Msih2BBkj5qz2bpau 2G8HbHOWbsrlX6TEBmf0H1tCWfRQToNaJl+c94ZBamUyNAJZofauD4DSotwuF3SCxvWk xDNtghB3z1jWObYlkdS94RwESDyNzMfIt6QOYhj4so5fuxnTWmGc6G+51SxbPvJqnvLj gV3z6yejnYv+gOblo7+AWCk9hBrZ5tbZN6HyxGMQbvWwUMbNCwiRxf8hppfBtOF5/z2Q wVJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0qlHjtuka3EM/1icDFeEAuKFU7NF/3XuZyw3Kr6tzfg=; b=s6ljcy8TU79TUEFksfQk6v6+q4b1Foh36N34r1ti9J6ZnoCCnRYGw8Kkl7vg1dzqQZ L7s+Nz/O1L3cUXwGihUc08ylP8nG2Nc2RzUcEilibSXH2YnbG6NkhtPf6lbTOFufI3z6 84hqlLugf7nyunp68mlPdZEhtb+TwyEsyANiTNIOJraKaB4b98z5HW8g9LAtqN9CwsU1 /IMVdtZiI6ep/gVyemdWM29xWNTgSLR/dZCJdpcm4DL4EQa4HrwDjsQi3XfIeSugu3DD xP2YJ9TQxFL8yKVerfx7eaQobeOhnuQELjfRCD1/ZaFHyd9FW0djlnMQ9oj0XJDERJ6C UsHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XFLZgz7H; 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 j191-20020a638bc8000000b00536e63c8643si2598877pge.558.2023.06.09.05.52.00; Fri, 09 Jun 2023 05:52:14 -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=XFLZgz7H; 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 S231172AbjFIMtD (ORCPT + 99 others); Fri, 9 Jun 2023 08:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240719AbjFIMse (ORCPT ); Fri, 9 Jun 2023 08:48:34 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C75D5DD for ; Fri, 9 Jun 2023 05:48:31 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b1a3fa2cd2so18873211fa.1 for ; Fri, 09 Jun 2023 05:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686314910; x=1688906910; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0qlHjtuka3EM/1icDFeEAuKFU7NF/3XuZyw3Kr6tzfg=; b=XFLZgz7HRBazltMXr83B4K7+r4xSmd9LBYKNmCz6YiNg+otbkE3CdlSC8iF1ayMycB 0kTql6CJHTwbHQ+9oNgBEQ1/WhrHZnsP6e4YQ6lgbom9odac3HIS19Bj/K5O06/jXfu+ c6dVVZ3zp2n35+tcUG0Yrmr/5MpmSbOEeQ6wCsoiaYJ5H0e7iTcag+74Z0HL+lDNkuXr swFpC7CVsbSQ/82RIOWQRxsc9NQwndUqwW+hJ201xwVINPNAeDG6/wTeHkP6jybH3qMw Klbqf+ldHjz5H8cEvYpuJYzoFlcA/2zZ5dMYzx7/KuUqDZSqW5fjOGGr7/l45Xd1qTYF uD7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686314910; x=1688906910; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0qlHjtuka3EM/1icDFeEAuKFU7NF/3XuZyw3Kr6tzfg=; b=kfyQpDm+MlrkkUM7lhGZek/PkW93oJBUDZAZkXQPhaU/SITN+bFpRRGuBT17xuhAVy aOikov3VBSgy4v0pOIPxe2+GXFPV7EryhQNSgkaAII1O50gg9HrNDP85tf/RuTzqS4XJ exyikNokCDeywjw19wE31BOsgXkDDXJ5z+Nv/Y3ZJnZkmfRd5D+ayTbAs6rHkkBQYUl6 RFjZ4hWJsFBj81sM7squEtXEE5XB9cOYfX9q76j2LMAYkLctvwLfEw1oQ2O3fTcz+bCx 0WyPJBWtJ0ItQjNgd22Z4dsdMqHP+EGV/cJkm7ygChfeQDfmlXW0VQPYIndCRnyXL0+G 6mwQ== X-Gm-Message-State: AC+VfDzUqcDgrkypslTKfT6IE3xiVm9Mqwwt8hsakVT5meHLU2/hCIyZ dhcuRA/za7fKq1bCavj5JjWmKA== X-Received: by 2002:a2e:8186:0:b0:2ae:e214:482f with SMTP id e6-20020a2e8186000000b002aee214482fmr1073617ljg.52.1686314910088; Fri, 09 Jun 2023 05:48:30 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id s4-20020a2e98c4000000b002b1a8e9d728sm372596ljj.64.2023.06.09.05.48.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 05:48:29 -0700 (PDT) Message-ID: <71d5758c-793a-3e9a-543f-19e326ecfcd4@linaro.org> Date: Fri, 9 Jun 2023 14:48:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH V3 2/5] clk: qcom: Remove support to set CAL_L field in lucid evo pll configure Content-Language: en-US To: Jagadeesh Kona , Dmitry Baryshkov , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Bjorn Andersson , Vladimir Zapolskiy , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Taniya Das , Satya Priya Kakitapalli , Imran Shaik , Ajit Pandey References: <20230601143430.5595-1-quic_jkona@quicinc.com> <20230601143430.5595-3-quic_jkona@quicinc.com> <1d29bc3f-12db-a676-56f8-b8c1a09063dc@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 9.06.2023 13:49, Jagadeesh Kona wrote: > Hi Dmitry, > > Thanks for your review! > > On 6/1/2023 8:16 PM, Dmitry Baryshkov wrote: >> On 01/06/2023 17:34, Jagadeesh Kona wrote: >>> For lucid evo and ole pll's the CAL_L, RINGOSC_CAL_L and L_VAL are >>> part of the same register, hence update the l configuration value >>> to include these fields across all the chipsets. >>> >>> Since the l configuration value now includes both L and CAL_L fields, >>> there is no need to explicitly set CAL_L field again in lucid evo pll >>> configure, Hence remove support to explicity set CAL_L field for evo pll. >>> >>> Fixes: 260e36606a03 ("clk: qcom: clk-alpha-pll: add Lucid EVO PLL configuration interfaces") >>> Signed-off-by: Taniya Das >>> Signed-off-by: Jagadeesh Kona >>> --- >>> Changes since V2: >>>   - Squashed update L val and remove explicit cal_l configuration to single patch >>>   - Updated L configuration for gpucc-sm8450 as well which was merged recently >>> Changes since V1: >>>   - Newly added. >>> >>>   drivers/clk/qcom/camcc-sm8450.c  | 24 ++++++++++++++++-------- >>>   drivers/clk/qcom/clk-alpha-pll.c |  6 +----- >>>   drivers/clk/qcom/dispcc-sm8450.c |  6 ++++-- >>>   drivers/clk/qcom/dispcc-sm8550.c |  6 ++++-- >>>   drivers/clk/qcom/gpucc-sa8775p.c |  6 ++++-- >>>   drivers/clk/qcom/gpucc-sm8450.c  |  6 ++++-- >>>   6 files changed, 33 insertions(+), 21 deletions(-) >> >> I'd say, this is still not a correct solution from my point of view. A correct solution would be to follow the existing code and use constants for the constant values (of CAL_L, and RINGOSC_CAL_L). >> > > Sure, will keep the existing code as is and will remove this patch in the next series. > >>> >>> diff --git a/drivers/clk/qcom/camcc-sm8450.c b/drivers/clk/qcom/camcc-sm8450.c >>> index 51338a2884d2..6a5a08f88598 100644 >>> --- a/drivers/clk/qcom/camcc-sm8450.c >>> +++ b/drivers/clk/qcom/camcc-sm8450.c >>> @@ -57,7 +57,8 @@ static const struct pll_vco rivian_evo_vco[] = { >>>   static const struct clk_parent_data pll_parent_data_tcxo = { .index = DT_BI_TCXO }; >>>   static const struct alpha_pll_config cam_cc_pll0_config = { >>> -    .l = 0x3e, >>> +    /* .l includes CAL_L_VAL, L_VAL fields */ >>> +    .l = 0x0044003e, >>>       .alpha = 0x8000, >>>       .config_ctl_val = 0x20485699, >>>       .config_ctl_hi_val = 0x00182261, >>> @@ -128,7 +129,8 @@ static struct clk_alpha_pll_postdiv cam_cc_pll0_out_odd = { >>>   }; > > [skipped] > > Thanks & Regards, > Jagadeesh Another non-patch-related nit, you don't have to (and shouldn't) cut off parts of the email unless it helps you "get to the point". You can also include your signature after the last paragraph you reply with. Konrad