public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org,
	"Högander Jouni" <jouni.hogander@nokia.com>,
	"Stoppa Igor (Nokia-D/Helsinki)" <Igor.Stoppa@nokia.com>,
	r-woodruff2@ti.com, "Kevin Hilman" <khilman@deeprootsystems.com>,
	"Sawant, Anand" <sawant@ti.com>,
	"Poussa Sakari" <sakari.poussa@nokia.com>
Subject: Re: [PATCH] OMAP3 powerdomains: remove RET from SGX power states list
Date: Thu, 6 Nov 2008 09:01:58 -0800	[thread overview]
Message-ID: <20081106170158.GT21736@atomide.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0811060401150.11718@utopia.booyaka.com>

* Paul Walmsley <paul@pwsan.com> [081106 03:09]:
> On Wed, 5 Nov 2008, Tony Lindgren wrote:
> 
> > * Paul Walmsley <paul@pwsan.com> [081105 11:39]:
> > > 
> > > The SGX device on OMAP3 does not support retention, so remove RET from the 
> > > list of possible SGX power states.  Problem debugged by Richard Woodruff 
> > > <r-woodruff2@ti.com>.
> > 
> > Pushing.
> 
> Just FYI, that patch prevents the kernel from booting due to a bug in 
> pm34xx.c; patch below.
> 
> Even with the follwoing patch, the initial power state setup code in 
> pm34xx.c will bail out early since it still tries to set the SGX next 
> power state to retention, which it does not support.

Pushing.

Tony

> 
> 
> - Paul
> 
> 
> OMAP3 PM: use list_for_each_entry_safe() when deleting list entries
> 
> From: Paul Walmsley <paul@pwsan.com>
> 
> The error path in clkdms_setup() needs to use list_for_each_entry_safe()
> when deleting entries from the list, or the kernel will crash.
> 
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> Cc: Jouni Högander <jouni.hogander@nokia.com>
> ---
>  arch/arm/mach-omap2/pm34xx.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index a11a657..da098d2 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -540,7 +540,7 @@ static int __init clkdms_setup(struct clockdomain *clkdm)
>  
>  int __init omap3_pm_init(void)
>  {
> -	struct power_state *pwrst;
> +	struct power_state *pwrst, *tmp;
>  	int ret;
>  
>  	printk(KERN_ERR "Power Management for TI OMAP3.\n");
> @@ -583,7 +583,7 @@ err1:
>  	return ret;
>  err2:
>  	free_irq(INT_34XX_PRCM_MPU_IRQ, NULL);
> -	list_for_each_entry(pwrst, &pwrst_list, node) {
> +	list_for_each_entry_safe(pwrst, tmp, &pwrst_list, node) {
>  		list_del(&pwrst->node);
>  		kfree(pwrst);
>  	}
--
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:[~2008-11-06 17:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 19:39 [PATCH] OMAP3 powerdomains: remove RET from SGX power states list Paul Walmsley
2008-11-06  3:33 ` Tony Lindgren
2008-11-06 11:08   ` Paul Walmsley
2008-11-06 17:01     ` Tony Lindgren [this message]
2008-11-07 15:01     ` Högander Jouni
2008-11-10 14:45       ` Paul Walmsley
2008-11-11  7:55         ` Högander Jouni
2008-11-11 22:00           ` Kevin Hilman
2008-11-12  8:20             ` Högander Jouni
2008-11-14  8:38             ` [PATCH] OMAP3: PM: Check in set_pwrdm_state that target state is supported by pwrdm Jouni Hogander
2008-11-14 17:37               ` Paul Walmsley
2008-11-15  3:27                 ` Paul Walmsley
2008-11-17  8:18                   ` [PATCH] OMAP3: PM: Check in set_pwrdm_state that target state is supported by pwrdm v2 Jouni Hogander
2008-11-18 18:27                     ` Paul Walmsley
2008-11-18 23:55                       ` Kevin Hilman
2008-11-19 18:04                         ` Tony Lindgren
2008-11-12 19:07           ` [PATCH] OMAP3 powerdomains: remove RET from SGX power states list Paul Walmsley
2008-11-19 21:54             ` Steve Sakoman
2008-11-19 22:08               ` 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=20081106170158.GT21736@atomide.com \
    --to=tony@atomide.com \
    --cc=Igor.Stoppa@nokia.com \
    --cc=jouni.hogander@nokia.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=r-woodruff2@ti.com \
    --cc=sakari.poussa@nokia.com \
    --cc=sawant@ti.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