Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4029209rdb; Thu, 14 Sep 2023 09:37:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBz2sqBO9Yw8cJrZzBqPR5KT9OV3GqdK0anbJ8u7HE5phdroZL4/v8M8hpkhwk8NgKURh+ X-Received: by 2002:a05:6358:7302:b0:135:4003:7857 with SMTP id d2-20020a056358730200b0013540037857mr3541731rwg.31.1694709429413; Thu, 14 Sep 2023 09:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694709429; cv=none; d=google.com; s=arc-20160816; b=JRPBa/6ez1fDAS7N1Q/OlFiUXeSWbQgIZS4ZurVcmInAbDpMZS6sOZIPA8siKoMOB5 xuvTEXBeOdNAhMlAQzi0dvfpaNgsUHTvd6XGufW929PdAeN5rvV/mw5wpcUrwj5yx6Im Ai972RehSzl19IBNCLp6Ug/VmVXngk3RhTtZIvvEsgm1ixjuWj/hPUip6orxTc+DC7sH rMUd/bsNgKqoMCHAUadEbStFDmVRc6yvevIANl1vqS1oD+9q/jUvzbPNBQxQ2vuXn1dy 88Rskqyo5lEPl0ABkI7BE/gv6ryeRAJ50Dg4YJ4ekqTJP2BPW4VeNXdildyZs3XrEtg2 7Tlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=nhzaDPtDjFNbPiCIGqGrvXSRv8u+mkX5rY5cXHPXIyg=; fh=ybquWFqC1eCiuFL6F8Ps/bpheMGbgSRDaeC0l3T7M5Q=; b=CWiyx5mRgKyRUlSn0yrOEkykWMv65NJTqt2v2g5ymoDAK8acNrZ0zx+55qp1xkWM+V 3X554/Y2q4m55JO8MbeQS9cHquy3CcmOEPBnOFeWioAB1qZJrDDR51opX9NjAIThIZGp 12KIFJvW+7tl9x0CDS/7t1mA9I1Gh1+VjMVc+4nx/lLJo2qClvkOwIaPFvGCkhSxhSsF L/0XJa5Hh0gWHUjehQoqo7YQz9W6l0+koJqbynN7J6zr8eVw0/esT5PdWPc7rhgEHYWg ec0A2EQoZ89c4nV/b30qLJ8/hXL5yIOrRspm5ZOkf5Hb/JbC5/QvOLqP63H661D+rUIG fYTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dm8BJHKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t23-20020a656097000000b00577ed0133d6si1667626pgu.454.2023.09.14.09.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dm8BJHKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D138B80859B9; Thu, 14 Sep 2023 09:30:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234660AbjINQaY (ORCPT + 99 others); Thu, 14 Sep 2023 12:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjINQaW (ORCPT ); Thu, 14 Sep 2023 12:30:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 678591FCE; Thu, 14 Sep 2023 09:30:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0C7FC433C7; Thu, 14 Sep 2023 16:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694709018; bh=nhzaDPtDjFNbPiCIGqGrvXSRv8u+mkX5rY5cXHPXIyg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Dm8BJHKO+oN1VPX59fBzNz5hbhtgnQTaYqEzNlqiHyg3/Q+TebdGXj2DcI3a2WO0g fU84tjCBbCgehDqn8bZsOzcN6mjV67vc6lQGVnjKjIEjyWUkvC/WYSeG92GE57jAfx dLdWUBX6itACTWdaC6jc15D9ZzLhfEDJCB6mhMx7W5siky4FI4y4Lp+d+c768DN8pn ZIBGMA8/MRfKmtLIKrWK6dZBnrH5jZBhEQjFtbkOj0LZ8egKX7zfgAr3R3Gn2rENu0 FnbUZit7JL1A230nO7ifdOsD0kPVrWYqXd5lAtBQI3nhob61IGES8GJpGBXsX4V7ku 3geRAMW/3X15Q== Message-ID: <580f3934ab1171e27d785db7362c342d.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <9952fa20-a27f-3240-cc49-5c5109febfc1@quicinc.com> References: <20230901091823.30242-1-quic_luoj@quicinc.com> <20230901091823.30242-5-quic_luoj@quicinc.com> <27ae3297ad161fd67706db70b402db04.sboyd@kernel.org> <16d09acf-7bdd-04ee-6faf-936c0366df03@quicinc.com> <17681a9f756cc70a190c674c51b90140.sboyd@kernel.org> <5a4805f7-f802-b1ba-9804-59c0fe6c7f26@quicinc.com> <92058c25fb11b75ee0a2298a684825e9.sboyd@kernel.org> <82adb75659e0d278e25b65b0e81df99a.sboyd@kernel.org> <9952fa20-a27f-3240-cc49-5c5109febfc1@quicinc.com> Subject: Re: [PATCH v6 4/4] clk: qcom: add clock controller driver for qca8386/qca8084 From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com To: Jie Luo , agross@kernel.org, andersson@kernel.org, catalin.marinas@arm.com, conor+dt@kernel.org, konrad.dybcio@linaro.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org, will@kernel.org Date: Thu, 14 Sep 2023 09:30:15 -0700 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:30:24 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 lipwig.vger.email Quoting Jie Luo (2023-09-12 20:27:25) >=20 >=20 > On 9/13/2023 1:18 AM, Stephen Boyd wrote: > > Quoting Jie Luo (2023-09-12 05:07:02) > >> > >> and freq_tbl are necessary to this clock. > >=20 > > I still don't see why the freq_tbl is necessary. >=20 > Hi Stephen, > For clk_rcg2_ops, freq_tbl is used to find the closest rate to decided=20 > the parent clock, the configuration of clock source and clock divider=20 > are saved in the freq_tbl to configure the RCG hardware register, the=20 > mapping of parent clock and hardware register value is decided by the=20 > freq_tbl for the RCG clock. The divider is always 1. The frequency is the frequency of the parent. The two pieces of information are already known without the frequency table. Why is it needed?