linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: r7s72100: fix bus clock calculation
Date: Thu, 06 Mar 2014 04:22:38 +0000	[thread overview]
Message-ID: <20140306042238.GC29693@verge.net.au> (raw)

On Fri, Feb 28, 2014 at 10:32:55AM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa@sang-engineering.com>
> 
> The picture in the datasheet is a little misleading, yet the divider of
> the bus_clk is 1/3 and not 2/3.
> 
> Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>

Thanks, I have queued this up with "shmobile: " inserted into
the subject.

> ---
>  arch/arm/mach-shmobile/clock-r7s72100.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c
> index f17a5db..bee0073 100644
> --- a/arch/arm/mach-shmobile/clock-r7s72100.c
> +++ b/arch/arm/mach-shmobile/clock-r7s72100.c
> @@ -70,7 +70,7 @@ static struct clk pll_clk = {
>  
>  static unsigned long bus_recalc(struct clk *clk)
>  {
> -	return clk->parent->rate * 2 / 3;
> +	return clk->parent->rate / 3;
>  }
>  
>  static struct sh_clk_ops bus_clk_ops = {
> -- 
> 1.8.5.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

             reply	other threads:[~2014-03-06  4:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06  4:22 Simon Horman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-02-28  9:32 [PATCH] ARM: r7s72100: fix bus clock calculation Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140306042238.GC29693@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).