Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1866092ybk; Sun, 17 May 2020 03:05:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuABaQdb0gzEmoY94zTrMIHIO6Fx7OTfgVwROGxCo6WzHxQ7HWfD2HqWuiNGuoegoHT4yD X-Received: by 2002:a50:c016:: with SMTP id r22mr9000982edb.388.1589709950819; Sun, 17 May 2020 03:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589709950; cv=none; d=google.com; s=arc-20160816; b=sstDqAY/Z+/ll/okBlEU2xjqDoj0nnGhTVTuiZFM20Croe6aIEEkEHiZcAYuOcsbeb 2OAvB5gTv3O18jY++zniazkLW59Da6F6zUq6lqQwvoiquPi6wON8dbO4MNo9EbdWHloH i2zBia6kzID3Ufb3klOV68QH7gL475mp2EFriGGketjl30IaD9PChNUz6SFEcSEUIsYz FC7+3uM+iiu9zLMFpmp51/7aCDLdjlx/CW3Xf1M9uazyYNyNNzSVtgcpGeWOY1FP3Sjk 1rEpsSh9Hf+/+ZZAS6kNRxyVt+pi5AMd6IeJHfKpENQGBcgDox/8XV3rElQEwCVD7c0b SGSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=KxeEKVLkrXkcEg8UpVr4Kr3YJM9oruaRmBCy5D4rvXc=; b=CF3k0JhYBjhVionH/Tl301AptM+ZyDBG7O7cobHyTg0XbLcEr7r5fHWJobZvbdRhqX iIXCDOS1fc1Zv1s4FsU8fXsGSrzBxMCx+OLrWu7T4JbbxNFI+3Ascuq8cPWu/sGOedpI 8D1pXNF/Cbv9DIBd560hvIlnuNNXLC92MGrJbczJ4/pGpPoK0mGJjfta+n4bZvXuS08g hIlzKPrEE2b4P++XZhC6W42wK7/ULSMP5fdtTJv8Ri+hnTw6xbn2fXGIwOXYxBVvwFVa WwfIeIKXTf+VLKaFyTmogHXa3duC2ZfEVO5d95fMeBaS3bw8MWi+P24BYXab+Uehp42z ejtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=lOFR0Dqq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si4402152ejs.266.2020.05.17.03.05.28; Sun, 17 May 2020 03:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=lOFR0Dqq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbgEQKCC (ORCPT + 99 others); Sun, 17 May 2020 06:02:02 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:33587 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbgEQKCB (ORCPT ); Sun, 17 May 2020 06:02:01 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589709721; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=KxeEKVLkrXkcEg8UpVr4Kr3YJM9oruaRmBCy5D4rvXc=; b=lOFR0DqqP53h/3FLZJ1Ku55hWfcUc0FOXXNVpXoF6AMc63klVcisxetn66Y7VOmBtAow/L9y fSzRM2+P/Cw5PM4dyqFxJL/wB9p7762qr6AOKquGSrMaUQDnsns66T8rwvHmUysCccGaARdV dF89JrOl1xGT8TNyRQmIbG/1lu0= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ec10b8e32b098143c35fc48 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 17 May 2020 10:01:50 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BCD8EC433D2; Sun, 17 May 2020 10:01:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.0.102] (unknown [183.82.140.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas) by smtp.codeaurora.org (Postfix) with ESMTPSA id 85A0BC433F2; Sun, 17 May 2020 10:01:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 85A0BC433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=tdas@codeaurora.org Subject: Re: [PATCH v1 1/3] clk: qcom: gcc: Add support for a new frequency for SC7180 To: Stephen Boyd , Michael Turquette Cc: David Brown , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , devicetree@vger.kernel.org, robh@kernel.org, robh+dt@kernel.org References: <1584356082-26769-1-git-send-email-tdas@codeaurora.org> <1584356082-26769-2-git-send-email-tdas@codeaurora.org> <158438095454.88485.11063617239206162025@swboyd.mtv.corp.google.com> From: Taniya Das Message-ID: <700ce3fd-8869-1531-ede3-79c2f514efad@codeaurora.org> Date: Sun, 17 May 2020 15:31:43 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <158438095454.88485.11063617239206162025@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Stephen, Thanks for your review. On 3/16/2020 11:19 PM, Stephen Boyd wrote: > Quoting Taniya Das (2020-03-16 03:54:40) >> There is a requirement to support 51.2MHz from GPLL6 for qup clocks, >> thus update the frequency table and parent data/map to use the GPLL6 >> source PLL. >> >> Signed-off-by: Taniya Das >> --- > > Any Fixes: tag for this? I guess the beginning of this driver being > introduced? > Sure, will add the same. >> drivers/clk/qcom/gcc-sc7180.c | 73 ++++++++++++++++++++++--------------------- >> 1 file changed, 37 insertions(+), 36 deletions(-) >> >> diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c >> index 7f59fb8..ad75847 100644 >> --- a/drivers/clk/qcom/gcc-sc7180.c >> +++ b/drivers/clk/qcom/gcc-sc7180.c >> @@ -405,8 +406,8 @@ static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = { >> >> static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init = { >> .name = "gcc_qupv3_wrap0_s0_clk_src", >> - .parent_data = gcc_parent_data_0, >> - .num_parents = 4, >> + .parent_data = gcc_parent_data_1, > > This should have been done initially. We shouldn't need to describe > "new" parents when they have always been there. Are there other clks in > this driver that actually have more parents than we've currently > described? If so, please fix them. > The auto generation script does not consider to define the parent unless it is used in the frequency table to derive a frequency. For now I didn't find any other sources missed. >> + .num_parents = 5, > > Can you use ARRAY_SIZE(gcc_parent_data_1) instead? That way this isn't a > hard-coded value. > Yes will take care of it too. >> .ops = &clk_rcg2_ops, >> }; >> -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation. --