public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Tero Kristo <tero.kristo@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] Smartreflex: Avoid unnecessary spam
Date: Wed, 09 Dec 2009 15:15:26 -0800	[thread overview]
Message-ID: <87y6lbsprl.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1260281775-30361-1-git-send-email-tero.kristo@nokia.com> (Tero Kristo's message of "Tue\,  8 Dec 2009 16\:16\:15 +0200")

Tero Kristo <tero.kristo@nokia.com> writes:

> From: Tero Kristo <tero.kristo@nokia.com>
>
> Current warning messages will be constantly printed out during normal operation
> if smartreflex autocompensation is disabled.
>
> Signed-off-by: Tero Kristo <tero.kristo@nokia.com>

Agreed that these warnings are spam, but I think they should be
replaced by some one-time warning so at least there's a hint someplace
that SR is not actually being done on a platfrom.

Kevin

> ---
>  arch/arm/mach-omap2/smartreflex.c |   10 +---------
>  1 files changed, 1 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
> index be3a1da..db228b2 100644
> --- a/arch/arm/mach-omap2/smartreflex.c
> +++ b/arch/arm/mach-omap2/smartreflex.c
> @@ -675,13 +675,8 @@ void sr_start_vddautocomap(int srid, u32 target_opp_no)
>  		sr_configure(sr);
>  	}
>  
> -	if (sr->is_autocomp_active == 1)
> -		pr_warning("SR%d: VDD autocomp is already active\n",
> -									srid);
> -
>  	sr->is_autocomp_active = 1;
>  	if (!sr_enable(sr, target_opp_no)) {
> -		pr_warning("SR%d: VDD autocomp not activated\n", srid);
>  		sr->is_autocomp_active = 0;
>  		if (sr->is_sr_reset == 1)
>  			sr_clk_disable(sr);
> @@ -707,11 +702,8 @@ int sr_stop_vddautocomap(int srid)
>  		/* Reset the volatage for current OPP */
>  		sr_reset_voltage(srid);
>  		return true;
> -	} else {
> -		pr_warning("SR%d: VDD autocomp is not active\n",
> -								srid);
> +	} else
>  		return false;
> -	}
>  
>  }
>  EXPORT_SYMBOL(sr_stop_vddautocomap);
> -- 
> 1.5.4.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" 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:[~2009-12-09 23:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-08 14:16 [PATCH] Smartreflex: Avoid unnecessary spam Tero Kristo
2009-12-09 23:15 ` Kevin Hilman [this message]
2009-12-09 23:21   ` Nishanth Menon
2009-12-09 23:23   ` Felipe Balbi
2009-12-09 23:47     ` Nishanth Menon
2009-12-09 23:51       ` Kevin Hilman

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=87y6lbsprl.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tero.kristo@nokia.com \
    /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