Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2846762ybh; Mon, 16 Mar 2020 10:49:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu79a44HFMsdc+w9iGEnwus8i9/Te88m1dx5rVhDYTQ4aY67azWPLZj5vdoZdlWsSpjmsag X-Received: by 2002:a9d:5e8e:: with SMTP id f14mr308846otl.303.1584380993025; Mon, 16 Mar 2020 10:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584380993; cv=none; d=google.com; s=arc-20160816; b=It0kMCb7CalqsUj7j8V57CYARR3z6v372O/M7Kogxg01nJRI/hb3aYit5yTEbCbP4f ILBa4sbbN9R97Y/MJ8H+llpWW5suC1fdxgVVo2GAZ1mTfbWOe32wrOB8lHRiHWoxe7IG +BQc+GNcvigEJPJ2kxDoFJVxWox306M1604OvpR0snfw7zdTmrfeg+8ExLL2sFEun40s OwqschDgDbEF3YCYcLTUCJiyOyUC33H4GPe80oQUq3My6oQCcgZHu745dSp84LyTx7LG lSFxI5ECJZLAwBKiXRkZjWjeCKbobKHs820ikMwEMIqF+8gWHT+DNp7VYSBUw+bMzCV+ hsLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=V8wc6pJCZr6WnJ+yS+QjRcwsaLTji0l+bn38URz5O9c=; b=U/f5hrqQyo6YOMmAAv+nIaImv4l2DBSinORwzeL7EwoJSDAQB7tcWHNfNTUJZaYyc7 C4C7Ah0UeFv5axwUC4awpIaZg56F2k85Ko1A12PhxhGCqRLLTY4DrsiSrJeljcSwB8FB 3482D6SS6J2ohoA0aToQut9TcGmvdmhY7az3QL+RvvPXmXSFM26WvMwT1VFdeUUronm9 8BEsoPYYGnBejrgm3tuPCW3T2NjdcbiPOy+yTPTkGwZCoBAKW0GYFH/0z0IrC8xndiHn B8PwOTAuvIQIg5IuuJ2SM8lCnS0AIAC/t2b8J+cCN9FWhadxquPktg+hikyKOelfBtro INmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oSKsU9SJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si280438otn.285.2020.03.16.10.49.39; Mon, 16 Mar 2020 10:49:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oSKsU9SJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732209AbgCPRtQ (ORCPT + 99 others); Mon, 16 Mar 2020 13:49:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:42018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730437AbgCPRtQ (ORCPT ); Mon, 16 Mar 2020 13:49:16 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FEA720658; Mon, 16 Mar 2020 17:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584380955; bh=xfZTyr5ja+RYNnMtZwetmtPv+1AaqscNKven2FfkDxo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oSKsU9SJzm/EgdmfAJYDTOlPriLwztJA85HMjiIi2sSw8r069BfrEZgsdO3OKAAJb jNf1SxhN1ajEtZvk51Mb6dT8GkeMeTQCB7vItI33yfsE+L7gCgTAkkCoo4xjNNpHYJ kD56b2zhaxo0WpofpKkWwAxD4yOY8VF4YUbgcVQM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1584356082-26769-2-git-send-email-tdas@codeaurora.org> References: <1584356082-26769-1-git-send-email-tdas@codeaurora.org> <1584356082-26769-2-git-send-email-tdas@codeaurora.org> Subject: Re: [PATCH v1 1/3] clk: qcom: gcc: Add support for a new frequency for SC7180 From: Stephen Boyd 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, Taniya Das To: Michael Turquette , Taniya Das Date: Mon, 16 Mar 2020 10:49:14 -0700 Message-ID: <158438095454.88485.11063617239206162025@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >=20 > Signed-off-by: Taniya Das > --- Any Fixes: tag for this? I guess the beginning of this driver being introduced? > drivers/clk/qcom/gcc-sc7180.c | 73 ++++++++++++++++++++++---------------= ------ > 1 file changed, 37 insertions(+), 36 deletions(-) >=20 > 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[] =3D { >=20 > static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init =3D { > .name =3D "gcc_qupv3_wrap0_s0_clk_src", > - .parent_data =3D gcc_parent_data_0, > - .num_parents =3D 4, > + .parent_data =3D 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. > + .num_parents =3D 5, Can you use ARRAY_SIZE(gcc_parent_data_1) instead? That way this isn't a hard-coded value. > .ops =3D &clk_rcg2_ops, > }; >