Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670518

Re: [PATCH 3/9] clk: fractional-divider: add CLK_FRAC_DIVIDER_ZERO_BASED flag support

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Dong Aisheng <dongas86@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/9] clk: fractional-divider: add CLK_FRAC_DIVIDER_ZERO_BASED flag support
Date Tue, 20 Jun 2017 11:30:01 +0200
Message-ID <tUnDX-6Ll-3@gated-at.bofh.it> (permalink)
References <tRNOi-4yK-11@gated-at.bofh.it> <tUgCv-27M-47@gated-at.bofh.it> <tUgCv-27M-45@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VB4/RnOv4d8eonNUoUsH9cZ1hzpeqg4Tf45lw4hWxmY=; b=J9U0QTV+1rgE3JyoPMKhNGkitTCPn2x2HJjADT79uWc+TerOMec7UA948cX4DAFPwG 8zYUMhjp0/rlksEWIYNsuR2Czh6vWFvDldCkKevJ6spasuJcloInyyH8teHZ7Vok/SkR pepWrJyXSag8DXfh1fN2y9TaB5lHzlWPxAk9QzS3P712P1juVDyiao9+jxTfeFnem9On ZQdH/Xyu1p50KCctw6/kgF/LOZ9oJ45NdYZpSHHwcxDdQEUtnGRusJTuS3ql5P01nc5f pN2lDH9zNEOh+2c8p9qQOIHsLWvvevbxJbxV5hgXUoFhLT56FIXvccinxzNirIZ/yFUH aJig==
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=VB4/RnOv4d8eonNUoUsH9cZ1hzpeqg4Tf45lw4hWxmY=; b=P1vKgIGmlzJJn94XrxFoyOSvZvm8BKOWb8yhyBX2B80klAubGN41XpYVmmNMQikoE+ lxBWu4AtiFMj0ZilZ7KWT7iqYg/NvrVikeF1fV6fHWDNKslbWs3561gJSJdy12wIUmDP cnEQ9S8um76yLUUMuB3XM+0dU/zVcX+HWFi6DfjLj3tdNB9JY5zuiMTzmdCKelwJpn+S U62WTt1+XvRD8W2EjFWePNeqV4zmsreXam5wmBmoe/5uOaIqo1Qi2DI2fcNsT6IRwfpH QxBKuOYl17NMgiLT0EkFNR8Wh3VYdhse9v4QIichLZ/Oh3XwWiH3A8vG9/0kmzZzrCx+ PnpQ==
X-Gm-Message-State AKS2vOwExIs6PkiUyaw6v7p9pb6/agA6Vm3xKtbS5yl0A4g/7EgzHKkp B0ojGBeLS+iO1A==
X-Received by 10.98.144.80 with SMTP id a77mr29497174pfe.148.1497950855078; Tue, 20 Jun 2017 02:27:35 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.24 (2015-08-30)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc Dong Aisheng <aisheng.dong@nxp.com>, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mturquette@baylibre.com, shawnguo@kernel.org, Anson.Huang@nxp.com, ping.bai@nxp.com
X-Original-Date Tue, 20 Jun 2017 17:26:11 +0800
X-Original-Message-ID <20170620092611.GC6805@b29396-OptiPlex-7040>
X-Original-References <1494856763-6543-1-git-send-email-aisheng.dong@nxp.com> <1494856763-6543-4-git-send-email-aisheng.dong@nxp.com> <20170620015547.GN4493@codeaurora.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1670518

Show key headers only | View raw


On Mon, Jun 19, 2017 at 06:55:47PM -0700, Stephen Boyd wrote:
> On 05/15, Dong Aisheng wrote:
> > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
> > index a6efbb9..4466cae 100644
> > --- a/include/linux/clk-provider.h
> > +++ b/include/linux/clk-provider.h
> > @@ -557,6 +557,11 @@ void clk_hw_unregister_fixed_factor(struct clk_hw *hw);
> >   * @lock:	register lock
> >   *
> >   * Clock with adjustable fractional divider affecting its output frequency.
> > + *
> > + * Flags:
> > + * CLK_FRAC_DIVIDER_ZERO_BASED - by default the divisor is the value read
> > + *	from the register.  If CLK_FRAC_DIVIDER_ZERO_BASED is set then the
> > + *	divider is the raw value read from the register plus one.
> 
> This should say the numerator and denominator are both the value
> read plus one. It isn't clear if it applies to the numerator, or
> the denominator, or both.
> 

Good suggestion.
Will improve it.

Regards
Dong Aisheng

> >   */
> >  struct clk_fractional_divider {
> >  	struct clk_hw	hw;
> 
> -- 
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> a Linux Foundation Collaborative Project
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/9] clk: fractional-divider: add  CLK_FRAC_DIVIDER_ZERO_BASED flag support Stephen Boyd <sboyd@codeaurora.org> - 2017-06-20 04:00 +0200
  Re: [PATCH 3/9] clk: fractional-divider: add  CLK_FRAC_DIVIDER_ZERO_BASED flag support Dong Aisheng <dongas86@gmail.com> - 2017-06-20 11:30 +0200

csiph-web