Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp555481ybe; Thu, 5 Sep 2019 02:09:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzre2xGJcG1wNP2hfregZnzVSSQDDZv+6kSG01q+dD5lg2ICsNE21Vv3UuV/lEis5lYPOJV X-Received: by 2002:a17:902:bf47:: with SMTP id u7mr2087979pls.77.1567674545844; Thu, 05 Sep 2019 02:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567674545; cv=none; d=google.com; s=arc-20160816; b=Zdr6jpneFd0zxIw2YRcRsnEaN21NMxyBBBEfmaFLjRVNWnH+wwHQKQiftPXhfF8P8E w1yqMoZ5cD2qGXz+By5D05sUrh8SC99I6DuhKCBXllqUWEHu20U/xxYIpMououU2a9fh wp/MW4MgvQeYjrbV/8M85AwRzNNezIzBK/8PhVo7ivyi0kp3LblKAb1ZnsWuS5YGaEb1 8posRGKgwnwH9vW34laUVj1JmFgfuzZnBikoozf6Y8xyXcVlY3seoVgMZc1eprIlKBrS HQRDBrEmIkU8AKQ5naM1V+UmyadXVxs4xQ8txcXBGhcmn0nX0gDtA/rZwolQ9H73b5uy 7uYw== 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:dkim-signature; bh=UrUg55b04dM+yl9nRPJPjzzhoddXyzVLDYekdXcQSgc=; b=nbYwkQkbITN8lL3zcGqPkb+dTBhom4bX3z0EOLuPDzJIwTkRpy+fwwTqsPcLQC6jUh Wf9ImJCbG+sDRcoTpmR1sejbLWdqnDFCJjZskB1k9GMhAmK6tCCVLPF2xfEtxs0gJOcU n+19luf8Uyzl94Yl0n/VR4bAfgHxN58e0pJV8g1Ty5OAOo++3paweIF/rf8vD/5CRg2/ UycTHNiHY4hVZtF/l8L1JkOdGQ3+WPobYPI5z2qI3VXif7Tdh35TEm8vjJj/PGqfkiJu LTRQx/KUyRPu+p/hZfMiAKZoYQNGl9Lk9er/hmMKBMAFaBcdyOwTJGLBPxKQnkXvDV5D rc6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kv5HIPYV; 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 8si1540238pfo.32.2019.09.05.02.08.44; Thu, 05 Sep 2019 02:09:05 -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=Kv5HIPYV; 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 S1732035AbfIEHaq (ORCPT + 99 others); Thu, 5 Sep 2019 03:30:46 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42048 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732011AbfIEHaq (ORCPT ); Thu, 5 Sep 2019 03:30:46 -0400 Received: by mail-wr1-f68.google.com with SMTP id q14so1399336wrm.9 for ; Thu, 05 Sep 2019 00:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UrUg55b04dM+yl9nRPJPjzzhoddXyzVLDYekdXcQSgc=; b=Kv5HIPYVfI9PgdgwlCV07ZyFJgXqw7sq2+0Vh5bvfl+bSA4H2DjB6yuku9I/09UJw0 c7wiE0Ah5S4Fwoi9aBtWJH9SA4mfKNahb4AgmRQ8aZPo9BWBWuINo1P0Tn7z4hJ+4o1s m9aEA88V6xZZlC5r+OqaJE0phxLyFQx9G2JkUi6cTgFXGyHk7dyWzV6kVkwQsDV1KUBY TvfJiDilT5QL7nboF06DNKSjOH+13DXqo4K76QFFXnFY+3lzNTkOCb27liOVWBjTBcwN 2cuANjLSloAdEcbrbP/5EwasNynZDopVKktayAkqiU9ZOqJSJblQ4qdOTzyJwGtq4u6k IPrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UrUg55b04dM+yl9nRPJPjzzhoddXyzVLDYekdXcQSgc=; b=RgBIYW4HcnRM3+a5Tbe2LXeu5GdRy342udolDiFdZ0LdUzegNtIMFJrfT1OZmgdoH2 PFxHkEt4xTRn1FQnNpuh4qxrXLBcE3N702UsJFzFkvMvDpDKPofiK3PQ8swHYntcwU0G bvwFN16UcWl2qhzPk4/GWXljCgTmbXifBv7UP6X3sopk8juVjK+V3Zf2epvesDSYIl39 z0x8oc3SJbvIo8+7ByOXImt+Vp8EShW+gFnHyiHb+0ujCoJdItcCUk1xg5YnAB/UaDgT wo06sPqkqskY2ZMq2LA4uqttNU6RAk76YH+836/PF91BKJtGuuqZSDSCwrYklB1kxnd3 uhnA== X-Gm-Message-State: APjAAAXlghgmWhpoKTTMLolg4/xbtB18fTn6DGWCnJ1vLhTEQE/eXJDR HkAtslWIOaaUhSt0e2vZYDNxmii2AhQ= X-Received: by 2002:adf:f20f:: with SMTP id p15mr1376482wro.17.1567668644139; Thu, 05 Sep 2019 00:30:44 -0700 (PDT) Received: from [192.168.1.6] (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id j26sm3633386wrd.2.2019.09.05.00.30.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 00:30:43 -0700 (PDT) Subject: Re: [PATCH 1/5] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency To: sboyd@kernel.org, agross@kernel.org, mturquette@baylibre.com Cc: bjorn.andersson@linaro.org, niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190826164510.6425-1-jorge.ramirez-ortiz@linaro.org> From: Jorge Ramirez Message-ID: Date: Thu, 5 Sep 2019 09:30:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190826164510.6425-1-jorge.ramirez-ortiz@linaro.org> Content-Type: text/plain; charset=utf-8 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 On 8/26/19 18:45, 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 > Reviewed-by: Bjorn Andersson > Acked-by: Stephen Boyd > --- > 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 055318f97991..9228b7b1f56e 100644 > --- a/drivers/clk/qcom/clk-alpha-pll.c > +++ b/drivers/clk/qcom/clk-alpha-pll.c > @@ -878,6 +878,14 @@ static long clk_trion_pll_round_rate(struct clk_hw *hw, unsigned long rate, > return clamp(rate, min_freq, max_freq); > } > > +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 15f27f4b06df..c28eb1a08c0c 100644 > --- a/drivers/clk/qcom/clk-alpha-pll.h > +++ b/drivers/clk/qcom/clk-alpha-pll.h > @@ -109,6 +109,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 e12c04c09a6a..567140709c7d 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, > }, > }, > }; > just a quick follow up, is this series being picked-up?