From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] drivers: sh: resume enabled clocks fix
Date: Mon, 13 Jun 2011 08:52:44 +0000 [thread overview]
Message-ID: <20110613085237.GJ2536@verge.net.au> (raw)
In-Reply-To: <20110613044215.13907.39264.sendpatchset@t400s>
On Mon, Jun 13, 2011 at 01:42:15PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Extend the SH / SH-Mobile ARM clock framework to only
> resume clocks that has been enabled.
>
> Without this fix divide-by-zero is triggering on sh7372
> FSIDIV during system wide resume of Suspend-to-RAM.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
> ---
>
> This is a rewrite of the patch recently posted as:
> "[PATCH] ARM: mach-shmobile: sh7372 divide-by-zero FSIDIV fix"
>
> drivers/sh/clk/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I much prefer this to the approach that was in
"[PATCH] ARM: mach-shmobile: sh7372 divide-by-zero FSIDIV fix".
Reviewed-by: Simon Horman <horms@verge.net.au>
>
> --- 0001/drivers/sh/clk/core.c
> +++ work/drivers/sh/clk/core.c 2011-06-13 13:32:10.000000000 +0900
> @@ -635,7 +635,7 @@ static void clks_core_resume(void)
> struct clk *clkp;
>
> list_for_each_entry(clkp, &clock_list, node) {
> - if (likely(clkp->ops)) {
> + if (likely(clkp->usecount && clkp->ops)) {
> unsigned long rate = clkp->rate;
>
> if (likely(clkp->ops->set_parent))
> --
> 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
>
prev parent reply other threads:[~2011-06-13 8:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 4:42 [PATCH] drivers: sh: resume enabled clocks fix Magnus Damm
2011-06-13 8:52 ` Simon Horman [this message]
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=20110613085237.GJ2536@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