Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp246962ybz; Tue, 21 Apr 2020 19:58:09 -0700 (PDT) X-Google-Smtp-Source: APiQypK02+g98wvfIHV3Zuy1aByjsA8Sa66tmHgoKaLZZ17tXh5CYJFntbi+FhqDNeRenpo6WC30 X-Received: by 2002:a17:906:4003:: with SMTP id v3mr23703405ejj.144.1587524289120; Tue, 21 Apr 2020 19:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587524289; cv=none; d=google.com; s=arc-20160816; b=XEdECoggiDhGe0xCVTvsAweKOFuCOqrLwY7/TA5WNtJ2f7v8wIrsW0lRpDgqVY11LM AfAXNI2t6BtRyIBkuyFILmrAhPGb9ZjOZ9RAN7gI4hOe9CxiQ8xavw3NH/55W/iNvqNH 8UY6cyRjhsAViqu0SY1yp8DBMCbgRJegEp3z+WFHr2Vvs+8uJmRcOdv3P4m177O8Yjmq MEZy4iBI8cDb3slQ2EapzTkpxQTL/EQUXtZ/VaIGuxf2Y+CYsEj2kyRGc16Zd7XS59uT HwxDFeMSKz6Ysw5feJJawwEoKSvdX4lTo1QQwHJ51HeXcsVcJ7ena0c93/mLQdIdzs1B ObsA== 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=NATyuiqLj5QjtyAoNjfYUi0TNdhEZSaT6tRLWCo0/5Y=; b=M4t6wyTeFAcJmvqCUQWICUd6LPMGK2ph1d8TMR+GFvsQSRnuzlGYL5nghe7SvL1tHb 6Owmv2KT0BMdTTOLX96auKDG1c1xvZx0hZ9aiH3d3kZWrs+aRc81r3KNpIQeME3jxaJx wDDjFcnczZySaAR3d2OYN9GzeoItaz6MyXzvT7eYclE7H5AaAnFhZ7pRsLRwmwq0QxVB GaYSRI9lgmgfZpA4S23UQXtQYFsghuX/XgHXCvn6/RoqoWeR0UT5xq7QR51mXywZINeD YMWCHbH8XLnrVvXcEtb9vssc/CqsjGmBiHMt6P8p02jFEbUAT+Q9g+XuPVgOTihJij1V UBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hAyf5PrQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si2594005edj.520.2020.04.21.19.57.46; Tue, 21 Apr 2020 19:58:09 -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=pass header.i=@kernel.org header.s=default header.b=hAyf5PrQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbgDVC4V (ORCPT + 99 others); Tue, 21 Apr 2020 22:56:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgDVC4U (ORCPT ); Tue, 21 Apr 2020 22:56:20 -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 60608206D5; Wed, 22 Apr 2020 02:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587524179; bh=uXktadkm7XuXT9daSgTz03SBn8FHZ34ecH0ouje4lq8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=hAyf5PrQe6/18AAwtdCBy7/vTmkGHFGFWYcT0VucAZGK2avIiPxB3tdbXuKdsc1JX fuuHheVQ6av9Fm1wTvsGGd5MVl+Nfvo/B8pgLXXwAlMz+qTt0aiF5K39+1gyc5D7ll j7wFUiAvPfeCpk0eHH6W0COpcM9jSiPWX81GHpDg= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200419121808.440780-4-bryan.odonoghue@linaro.org> References: <20200419121808.440780-1-bryan.odonoghue@linaro.org> <20200419121808.440780-4-bryan.odonoghue@linaro.org> Subject: Re: [PATCH 3/3] clk: qcom: gcc-msm8939: Make silicon specific updates for msm8939 From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, shawn.guo@linaro.org, p.zabel@pengutronix.de, Bryan O'Donoghue To: Bryan O'Donoghue , agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org Date: Tue, 21 Apr 2020 19:56:18 -0700 Message-ID: <158752417863.132238.13958544237045504884@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 Bryan O'Donoghue (2020-04-19 05:18:08) > The msm8939 is based on the msm8916. It is compatible in several ways but, > has additional functional blocks added which require additional PLL > sources. In some cases functional blocks from the msm8916 have different > clock sources or different supported frequencies. >=20 > This patch encapsulates the conversion from msm8916 to msm8939. >=20 > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Rob Herring > Cc: Philipp Zabel > Cc: linux-arm-msm@vger.kernel.org > Cc: linux-clk@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: devicetree@vger.kernel.org > Signed-off-by: Shawn Guo > Signed-off-by: Bryan O'Donoghue > --- > drivers/clk/qcom/gcc-msm8939.c | 832 ++++++++++++++++++++++++++++----- > 1 file changed, 709 insertions(+), 123 deletions(-) >=20 Please use the new way of specifying clk parents with the clk_hw and DT based way. Some qcom clk drivers have already migrated. If this is a copy of the other driver then perhaps also modify that one in the series so that git can find the copy still. Sigh I still haven't written the documentation about it! Look for .parent_data in drivers/clk/qcom/gcc-sc7180.c for the best guidance. > @@ -1695,6 +1997,7 @@ static struct clk_branch gcc_blsp1_qup4_spi_apps_cl= k =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk =3D { > .halt_reg =3D 0x06020, > .clkr =3D { > @@ -1712,6 +2015,7 @@ static struct clk_branch gcc_blsp1_qup5_i2c_apps_cl= k =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_blsp1_qup5_spi_apps_clk =3D { > .halt_reg =3D 0x0601c, > .clkr =3D { > @@ -1729,6 +2033,7 @@ static struct clk_branch gcc_blsp1_qup5_spi_apps_cl= k =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk =3D { > .halt_reg =3D 0x07020, > .clkr =3D { > @@ -1746,6 +2051,7 @@ static struct clk_branch gcc_blsp1_qup6_i2c_apps_cl= k =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_blsp1_qup6_spi_apps_clk =3D { > .halt_reg =3D 0x0701c, > .clkr =3D { > @@ -1797,6 +2103,7 @@ static struct clk_branch gcc_blsp1_uart2_apps_clk = =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_boot_rom_ahb_clk =3D { > .halt_reg =3D 0x1300c, > .halt_check =3D BRANCH_HALT_VOTED, > @@ -2341,6 +2648,7 @@ static struct clk_branch gcc_camss_vfe_axi_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_crypto_ahb_clk =3D { > .halt_reg =3D 0x16024, > .halt_check =3D BRANCH_HALT_VOTED, > @@ -2359,6 +2667,7 @@ static struct clk_branch gcc_crypto_ahb_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_crypto_axi_clk =3D { > .halt_reg =3D 0x16020, > .halt_check =3D BRANCH_HALT_VOTED, > @@ -2377,6 +2686,7 @@ static struct clk_branch gcc_crypto_axi_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_crypto_clk =3D { > .halt_reg =3D 0x1601c, > .halt_check =3D BRANCH_HALT_VOTED, > @@ -2650,6 +3011,7 @@ static struct clk_branch gcc_oxili_gfx3d_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_pdm2_clk =3D { > .halt_reg =3D 0x4400c, > .clkr =3D { > @@ -2667,6 +3029,7 @@ static struct clk_branch gcc_pdm2_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ > static struct clk_branch gcc_pdm_ahb_clk =3D { > .halt_reg =3D 0x44004, > .clkr =3D { > @@ -2684,6 +3047,7 @@ static struct clk_branch gcc_pdm_ahb_clk =3D { > }, > }; > =20 > +/* CBCR/halt_reg value derived from code only */ Drop these useless comments.