* [PATCH v2] OMAP3630: PM: don't warn the user with a trace in case of PM34XX_ERRATUM
@ 2011-01-31 13:35 Ricardo Salveti de Araujo
2011-01-31 22:22 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Salveti de Araujo @ 2011-01-31 13:35 UTC (permalink / raw)
To: linux-omap; +Cc: Ricardo Salveti de Araujo
In case in user has a OMAP3630 < ES1.2 the kernel should warn the user
about the ERRATUM, but using pr_warn instead of WARN_ON is already
enough, as there is nothing else the user can do besides changing the
board.
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
---
v1->v2:
* Use pr_warn instead of printk (Kevin Hilman)
arch/arm/mach-omap2/cpuidle34xx.c | 2 +-
arch/arm/mach-omap2/pm34xx.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
index f7b22a1..876eeca 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -464,7 +464,7 @@ void omap_init_power_states(void)
if (IS_PM34XX_ERRATUM(PM_SDRC_WAKEUP_ERRATUM_i583)) {
omap3_power_states[OMAP3_STATE_C7].valid = 0;
cpuidle_params_table[OMAP3_STATE_C7].valid = 0;
- WARN_ONCE(1, "%s: core off state C7 disabled due to i583\n",
+ pr_warn("%s: core off state C7 disabled due to i583\n",
__func__);
}
}
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index a4aa192..88f09da 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -927,8 +927,7 @@ void omap3_pm_off_mode_enable(int enable)
pwrst->pwrdm == core_pwrdm &&
state == PWRDM_POWER_OFF) {
pwrst->next_state = PWRDM_POWER_RET;
- WARN_ONCE(1,
- "%s: Core OFF disabled due to errata i583\n",
+ pr_warn("%s: Core OFF disabled due to errata i583\n",
__func__);
} else {
pwrst->next_state = state;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] OMAP3630: PM: don't warn the user with a trace in case of PM34XX_ERRATUM
2011-01-31 13:35 [PATCH v2] OMAP3630: PM: don't warn the user with a trace in case of PM34XX_ERRATUM Ricardo Salveti de Araujo
@ 2011-01-31 22:22 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2011-01-31 22:22 UTC (permalink / raw)
To: Ricardo Salveti de Araujo; +Cc: linux-omap
Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> writes:
> In case in user has a OMAP3630 < ES1.2 the kernel should warn the user
> about the ERRATUM, but using pr_warn instead of WARN_ON is already
> enough, as there is nothing else the user can do besides changing the
> board.
>
> Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Thanks, queuing for 2.6.39 in my for_2.6.39/pm-misc branch.
Kevin
> ---
> v1->v2:
> * Use pr_warn instead of printk (Kevin Hilman)
>
> arch/arm/mach-omap2/cpuidle34xx.c | 2 +-
> arch/arm/mach-omap2/pm34xx.c | 3 +--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
> index f7b22a1..876eeca 100644
> --- a/arch/arm/mach-omap2/cpuidle34xx.c
> +++ b/arch/arm/mach-omap2/cpuidle34xx.c
> @@ -464,7 +464,7 @@ void omap_init_power_states(void)
> if (IS_PM34XX_ERRATUM(PM_SDRC_WAKEUP_ERRATUM_i583)) {
> omap3_power_states[OMAP3_STATE_C7].valid = 0;
> cpuidle_params_table[OMAP3_STATE_C7].valid = 0;
> - WARN_ONCE(1, "%s: core off state C7 disabled due to i583\n",
> + pr_warn("%s: core off state C7 disabled due to i583\n",
> __func__);
> }
> }
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index a4aa192..88f09da 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -927,8 +927,7 @@ void omap3_pm_off_mode_enable(int enable)
> pwrst->pwrdm == core_pwrdm &&
> state == PWRDM_POWER_OFF) {
> pwrst->next_state = PWRDM_POWER_RET;
> - WARN_ONCE(1,
> - "%s: Core OFF disabled due to errata i583\n",
> + pr_warn("%s: Core OFF disabled due to errata i583\n",
> __func__);
> } else {
> pwrst->next_state = state;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-31 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 13:35 [PATCH v2] OMAP3630: PM: don't warn the user with a trace in case of PM34XX_ERRATUM Ricardo Salveti de Araujo
2011-01-31 22:22 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox