Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10654567ybi; Thu, 11 Jul 2019 08:49:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh+elvg8ExtrtZlqsVNNku78giMCt9sW4TD/lEqCGAodkQOghZjDRdlGJtCzPqLPkKoVER X-Received: by 2002:a17:90a:7f85:: with SMTP id m5mr5634780pjl.78.1562860187785; Thu, 11 Jul 2019 08:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562860187; cv=none; d=google.com; s=arc-20160816; b=sZV+h/TTxySslSXOcTuNzSArazWVVy23vDWoYr6G4unb7MDbkKi7xBAbbupuX1WBYr I/l/4+MKDm8Sr5N3H3BYCIaXiw17vgG2Rl/glAaEv+yH74mXoVdiuQA+2/C/SHWyHGNK 6RCdV1Bo4Y+tUdFyRhaMCYF9tJ/n57mVeTxZ82FL9rfzPZqDiyrj5gP591NVnhBK+cKS sVTHX8XlxeNQVZIHygopWmEYEmSXdaJkvrPA/DiqkmLTRUTr4YpT4wKvBwSdyBn6TJae WjdQMfymY1JjjTpu2geegmAF/9Yt2B5XKdh06EYnr/j53eMnXPCYAAF7CK5qk1eLhssd OpuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PcMRy6X0HHSU2uwIcDv40X8gHtVe1fCLvC/RPbbBFw4=; b=CwMfvGHm1+aTtX1KOOkur3U6r7WFX26MpS2F5tcHYDzg5rHqQngDq+RH+Fz3aNw6r9 sVY/RefWK3uT50A00w0y5GtU3kpDBBeKNdgLpvPRJJCbx2cMqXCSks93fGtCmxYq2ZCd YsBYUKd5Y/RUzGINV/IZFacPqPT/UaEB+YjcHhymvTA1YV6gxsLul+5LndCHXL3vz4Ec nYgN7BF2Rkge8ZzShW/nawh9fwxRK2w8odZJ3QAR96W4Uy7HgJ/12ATU92oacd4Adl6K fEAF2H4/TpQZC8VdU7oI30lV2iTCrUjbAbuRvwCVcz0106qs507zH+JaCBMwh26Y4w1L QZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VogL/o35"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si5420606pll.168.2019.07.11.08.49.32; Thu, 11 Jul 2019 08:49:47 -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=@linaro.org header.s=google header.b="VogL/o35"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728754AbfGKP3F (ORCPT + 99 others); Thu, 11 Jul 2019 11:29:05 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38075 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728655AbfGKP3F (ORCPT ); Thu, 11 Jul 2019 11:29:05 -0400 Received: by mail-pf1-f196.google.com with SMTP id y15so2929181pfn.5 for ; Thu, 11 Jul 2019 08:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PcMRy6X0HHSU2uwIcDv40X8gHtVe1fCLvC/RPbbBFw4=; b=VogL/o35kuGo3WvcW/9vQ/CmCcSo9r2owGFVwrFu27xYKAGlDQM88VY38U9w9AmJgW boamIRHIiQBG4PAGALOc7K0FtqCU6KXpqWIz5/1lWvFPzEwNc1dBocfNLQDezt80rcX+ MvmAf8ekPVs3LZ9Xjk7hNP8oCmKd5RLpPng6wA/LDapUxGTXvc/Y4mRWQtX/XfRSu8++ +kOWZhY+F/SPRPnHjaFeqWkVXDajd8OVccJUa+tk9zJN48IIUVIDt60ZxcCV2UXMlo3S cSW/pXxClE7zM0CdthbPUlJPlX57aUZLdnGWY2532RkdiYBRuXOwcKe0SxY6nsJREwIV T/bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PcMRy6X0HHSU2uwIcDv40X8gHtVe1fCLvC/RPbbBFw4=; b=YUcLd+841C7+WXNpTX+wQPhcDMr2gsSEik3YiMUpQWFNurDorA7QeO3vzihLiXj9Qf VmSihogWYkfrWs1UQbbI/Y9AbTh/lDeXPlFgpMNaW2e7OVZMNhoCcVCMIqZthPzm137r lkrPSFYfBPa1ELN6gH6ANjzZ5jDrYRaEzsg0I2qG/79UIdDx4G9rhOqWrW2lt7N6Ta36 cpGfqStIZtga2aCyBBBuGUTxjr/VUO5af//5qV/zRQXgaA0H5AIs8LntsZJNgWkVZoXi fWKEs5o6q/4hwOxg5M5r8gaTVLtC8lrmpGlWo2vur9E2zaSrqDwGMhTZkjbAdFxoWN2X d7yw== X-Gm-Message-State: APjAAAUfhrIXmnikyH8iHMkaQLJlREdSaS/Nzca3FnwsdUCA/OGtJBlf kLPkaUDzczF6RcRbXqcIOPwjjg== X-Received: by 2002:a65:62c4:: with SMTP id m4mr4876927pgv.243.1562858944051; Thu, 11 Jul 2019 08:29:04 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s43sm8776852pjb.10.2019.07.11.08.29.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 08:29:03 -0700 (PDT) Date: Thu, 11 Jul 2019 08:30:13 -0700 From: Bjorn Andersson To: Jorge Ramirez-Ortiz Cc: sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: Re: [PATCH v3 01/14] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency Message-ID: <20190711153013.GP7234@tuxbook-pro> References: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> <20190625164733.11091-2-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190625164733.11091-2-jorge.ramirez-ortiz@linaro.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 25 Jun 09:47 PDT 2019, Jorge Ramirez-Ortiz wrote: > Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware > specifications. > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > Acked-by: Stephen Boyd Reviewed-by: Bjorn Andersson > --- > drivers/clk/qcom/clk-alpha-pll.c | 8 ++++++++ > drivers/clk/qcom/clk-alpha-pll.h | 1 + > drivers/clk/qcom/gcc-qcs404.c | 2 +- > 3 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c > index 0ced4a5a9a17..ef51f302bdf0 100644 > --- a/drivers/clk/qcom/clk-alpha-pll.c > +++ b/drivers/clk/qcom/clk-alpha-pll.c > @@ -730,6 +730,14 @@ static long alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, > return alpha_huayra_pll_round_rate(rate, *prate, &l, &a); > } > > +const struct clk_ops clk_alpha_pll_fixed_ops = { > + .enable = clk_alpha_pll_enable, > + .disable = clk_alpha_pll_disable, > + .is_enabled = clk_alpha_pll_is_enabled, > + .recalc_rate = clk_alpha_pll_recalc_rate, > +}; > +EXPORT_SYMBOL_GPL(clk_alpha_pll_fixed_ops); > + > const struct clk_ops clk_alpha_pll_ops = { > .enable = clk_alpha_pll_enable, > .disable = clk_alpha_pll_disable, > diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h > index 66755f0f84fc..6b4eb74706b4 100644 > --- a/drivers/clk/qcom/clk-alpha-pll.h > +++ b/drivers/clk/qcom/clk-alpha-pll.h > @@ -104,6 +104,7 @@ struct alpha_pll_config { > }; > > extern const struct clk_ops clk_alpha_pll_ops; > +extern const struct clk_ops clk_alpha_pll_fixed_ops; > extern const struct clk_ops clk_alpha_pll_hwfsm_ops; > extern const struct clk_ops clk_alpha_pll_postdiv_ops; > extern const struct clk_ops clk_alpha_pll_huayra_ops; > diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c > index 29cf464dd2c8..18c6563889f3 100644 > --- a/drivers/clk/qcom/gcc-qcs404.c > +++ b/drivers/clk/qcom/gcc-qcs404.c > @@ -330,7 +330,7 @@ static struct clk_alpha_pll gpll0_ao_out_main = { > .parent_names = (const char *[]){ "cxo" }, > .num_parents = 1, > .flags = CLK_IS_CRITICAL, > - .ops = &clk_alpha_pll_ops, > + .ops = &clk_alpha_pll_fixed_ops, > }, > }, > }; > -- > 2.21.0 >