All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs
@ 2009-06-05 13:00 Rajendra Nayak
  2009-06-05 22:10 ` Kevin Hilman
  0 siblings, 1 reply; 5+ messages in thread
From: Rajendra Nayak @ 2009-06-05 13:00 UTC (permalink / raw)
  To: linux-omap; +Cc: Rajendra Nayak

The pwrdm_enable_hdwr_sar/pwrdm_disable_hdwr_sar do not
actually set/reset the SAVEANDRESTORE bit in the PWSTCTRL
register but modify some other bit instead.
This happens due to the OMAP3430ES2_SAVEANDRESTORE_SHIFT
being defined as (1 << 4) instead of just 4.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
---
 arch/arm/mach-omap2/prm-regbits-34xx.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/prm-regbits-34xx.h b/arch/arm/mach-omap2/prm-regbits-34xx.h
index 06fee29..d4ea370 100644
--- a/arch/arm/mach-omap2/prm-regbits-34xx.h
+++ b/arch/arm/mach-omap2/prm-regbits-34xx.h
@@ -411,7 +411,7 @@
 /* PM_PREPWSTST_CAM specific bits */
 
 /* PM_PWSTCTRL_USBHOST specific bits */
-#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		(1 << 4)
+#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		4
 
 /* RM_RSTST_PER specific bits */
 
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs
  2009-06-05 13:00 [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs Rajendra Nayak
@ 2009-06-05 22:10 ` Kevin Hilman
  2009-06-05 22:44   ` Paul Walmsley
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2009-06-05 22:10 UTC (permalink / raw)
  To: Rajendra Nayak; +Cc: linux-omap

Rajendra Nayak <rnayak@ti.com> writes:

> The pwrdm_enable_hdwr_sar/pwrdm_disable_hdwr_sar do not
> actually set/reset the SAVEANDRESTORE bit in the PWSTCTRL
> register but modify some other bit instead.
> This happens due to the OMAP3430ES2_SAVEANDRESTORE_SHIFT
> being defined as (1 << 4) instead of just 4.
>
> Signed-off-by: Rajendra Nayak <rnayak@ti.com>

Thanks, pushing to PM branch.

I'll wait to hear from Kalle if we can revert his previous patch
for this.

Kevin

> ---
>  arch/arm/mach-omap2/prm-regbits-34xx.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/prm-regbits-34xx.h b/arch/arm/mach-omap2/prm-regbits-34xx.h
> index 06fee29..d4ea370 100644
> --- a/arch/arm/mach-omap2/prm-regbits-34xx.h
> +++ b/arch/arm/mach-omap2/prm-regbits-34xx.h
> @@ -411,7 +411,7 @@
>  /* PM_PREPWSTST_CAM specific bits */
>  
>  /* PM_PWSTCTRL_USBHOST specific bits */
> -#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		(1 << 4)
> +#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		4
>  
>  /* RM_RSTST_PER specific bits */
>  
> -- 
> 1.5.4.7
>
> --
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs
  2009-06-05 22:10 ` Kevin Hilman
@ 2009-06-05 22:44   ` Paul Walmsley
  2009-06-05 22:53     ` Kevin Hilman
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Walmsley @ 2009-06-05 22:44 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: Rajendra Nayak, Kalle Jokiniemi, linux-omap

On Fri, 5 Jun 2009, Kevin Hilman wrote:

> Rajendra Nayak <rnayak@ti.com> writes:
> 
> > The pwrdm_enable_hdwr_sar/pwrdm_disable_hdwr_sar do not
> > actually set/reset the SAVEANDRESTORE bit in the PWSTCTRL
> > register but modify some other bit instead.
> > This happens due to the OMAP3430ES2_SAVEANDRESTORE_SHIFT
> > being defined as (1 << 4) instead of just 4.
> >
> > Signed-off-by: Rajendra Nayak <rnayak@ti.com>
> 
> Thanks, pushing to PM branch.
> 
> I'll wait to hear from Kalle if we can revert his previous patch
> for this.

I think Kalle covered this one already:

http://patchwork.kernel.org/patch/15586/

- Paul

> 
> Kevin
> 
> > ---
> >  arch/arm/mach-omap2/prm-regbits-34xx.h |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/prm-regbits-34xx.h b/arch/arm/mach-omap2/prm-regbits-34xx.h
> > index 06fee29..d4ea370 100644
> > --- a/arch/arm/mach-omap2/prm-regbits-34xx.h
> > +++ b/arch/arm/mach-omap2/prm-regbits-34xx.h
> > @@ -411,7 +411,7 @@
> >  /* PM_PREPWSTST_CAM specific bits */
> >  
> >  /* PM_PWSTCTRL_USBHOST specific bits */
> > -#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		(1 << 4)
> > +#define OMAP3430ES2_SAVEANDRESTORE_SHIFT		4
> >  
> >  /* RM_RSTST_PER specific bits */
> >  
> > -- 
> > 1.5.4.7
> >
> > --
> > 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
> --
> 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
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs
  2009-06-05 22:44   ` Paul Walmsley
@ 2009-06-05 22:53     ` Kevin Hilman
  2009-06-08  7:57       ` VS: " Jokiniemi Kalle
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2009-06-05 22:53 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: Rajendra Nayak, Kalle Jokiniemi, linux-omap

Paul Walmsley <paul@pwsan.com> writes:

> On Fri, 5 Jun 2009, Kevin Hilman wrote:
>
>> Rajendra Nayak <rnayak@ti.com> writes:
>> 
>> > The pwrdm_enable_hdwr_sar/pwrdm_disable_hdwr_sar do not
>> > actually set/reset the SAVEANDRESTORE bit in the PWSTCTRL
>> > register but modify some other bit instead.
>> > This happens due to the OMAP3430ES2_SAVEANDRESTORE_SHIFT
>> > being defined as (1 << 4) instead of just 4.
>> >
>> > Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>> 
>> Thanks, pushing to PM branch.
>> 
>> I'll wait to hear from Kalle if we can revert his previous patch
>> for this.
>
> I think Kalle covered this one already:
>
> http://patchwork.kernel.org/patch/15586/

... but was missing from PM branch.  Remedied now.

But we also have a patch in the PM branch[1] which disables the
USBHOST SAR by removing the HAS_HDWR_SAR flag for the pwrdm.

I'm gessing/hoping that fixing this shift value allows us to
revert that patch and am hoping for some confirmation from 
Kalle.

Kevin

[1]  http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=commit;h=942fc93ce6b5ec7999f7864f6bb088cc8f308f45

^ permalink raw reply	[flat|nested] 5+ messages in thread

* VS: [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs
  2009-06-05 22:53     ` Kevin Hilman
@ 2009-06-08  7:57       ` Jokiniemi Kalle
  0 siblings, 0 replies; 5+ messages in thread
From: Jokiniemi Kalle @ 2009-06-08  7:57 UTC (permalink / raw)
  To: Kevin Hilman, Paul Walmsley; +Cc: Rajendra Nayak, linux-omap


________________________________________
Lähettäjä: Kevin Hilman [khilman@deeprootsystems.com]
Lähetetty: 6. kesäkuuta 2009 1:53
Vastaanottaja: Paul Walmsley
Kopio: Rajendra Nayak; Jokiniemi Kalle; linux-omap@vger.kernel.org
Aihe: Re: [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs

Paul Walmsley <paul@pwsan.com> writes:

>> On Fri, 5 Jun 2009, Kevin Hilman wrote:
>>
>>> Rajendra Nayak <rnayak@ti.com> writes:
>>>
>>> > The pwrdm_enable_hdwr_sar/pwrdm_disable_hdwr_sar do not
>>> > actually set/reset the SAVEANDRESTORE bit in the PWSTCTRL
>>> > register but modify some other bit instead.
>>> > This happens due to the OMAP3430ES2_SAVEANDRESTORE_SHIFT
>>> > being defined as (1 << 4) instead of just 4.
>>> >
>>> > Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>>>
>>> Thanks, pushing to PM branch.
>>>
>>> I'll wait to hear from Kalle if we can revert his previous patch
>>> for this.
>>
>> I think Kalle covered this one already:
>>
>> http://patchwork.kernel.org/patch/15586/
>
> ... but was missing from PM branch.  Remedied now.
>
> But we also have a patch in the PM branch[1] which disables the
> USBHOST SAR by removing the HAS_HDWR_SAR flag for the pwrdm.
>
> I'm gessing/hoping that fixing this shift value allows us to
> revert that patch and am hoping for some confirmation from
> Kalle.

The above shift fix enabled both USBHOST and USBTLL saverestores.
Unfortunately, the USBHOST saverestore seems to cause the USBHOST
power domain to hang in active state after toggling
/sys/power/enable_off_mode 0 -> 1-> 0. This was observed at least
on RX-51. Haven't tested this on other hardware though. USBTLL
saverestore works ok on ES3.1 and later devices.

I think the conclusion from discussion with Richard W. was that using
SW triggered power domain state transition for USBHOST would make
the USBHOST SAR work. The problem with just disabling USBHOST
SAR is that it leaves ES3.0 devices open for the dreaded "cold reset
issue" (as USBTLL SAR won't work on ES3.0).

We are currently using all ES3.1 devices, so there is no push to get a
better fix for this. If anyone wants to take a shot at the problem, feel
free to do so.

- Kalle

>
> Kevin
>
> [1]  http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=commit;h=942fc93ce6b5ec7999f7864f6bb088cc8f308f45
>--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-08  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-05 13:00 [PATCH] OMAP3: PM: Fix the pwrdm_enable/disable_hdwr_sar funcs Rajendra Nayak
2009-06-05 22:10 ` Kevin Hilman
2009-06-05 22:44   ` Paul Walmsley
2009-06-05 22:53     ` Kevin Hilman
2009-06-08  7:57       ` VS: " Jokiniemi Kalle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.