Skip to contentSkip to conversation

omap: 3630: disable TLL SAR on 3630 ES1

PATCH RESEND Superseded Anand Gadiyar 2 participants 4 messages Jul 9, 2010 – Jul 15, 2010

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 omap: 3630: disable TLL SAR on 3630 ES1

USBTLL Save-and-Restore is broken in 3630 ES1.0. Having it enabled could result in incorrect register restores as the OMAP exits off-mode. This could potentially result in unexpected wakeup events.

This is fixed in ES1.1. So disable it for ES1.0s.

---
This is a fix for buggy hardware, and it would be nice to see this in the next merge window too.

Depends on the patch I just posted which adds the CHIP_GE_OMAP3630ES1_1 macro
<https://patchwork.kernel.org/patch/111147/>

 arch/arm/mach-omap2/powerdomains34xx.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/powerdomains34xx.h +4 -2
Index: linux-omap-2.6/arch/arm/mach-omap2/powerdomains34xx.h
===================================================================
@@ -80,7 +80,8 @@ static struct powerdomain core_3xxx_pre_
 	.prcm_offs	  = CORE_MOD,
 	.omap_chip	  = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES1 |
 					   CHIP_IS_OMAP3430ES2 |
-					   CHIP_IS_OMAP3430ES3_0),
+					   CHIP_IS_OMAP3430ES3_0 |
+					   CHIP_IS_OMAP3630ES1),
 	.pwrsts		  = PWRSTS_OFF_RET_ON,
 	.pwrsts_logic_ret = PWRSTS_OFF_RET,
 	.banks		  = 2,
@@ -97,7 +98,8 @@ static struct powerdomain core_3xxx_pre_
 static struct powerdomain core_3xxx_es3_1_pwrdm = {
 	.name		  = "core_pwrdm",
 	.prcm_offs	  = CORE_MOD,
-	.omap_chip	  = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1),
+	.omap_chip	  = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES3_1 |
+					  CHIP_GE_OMAP3630ES1_1),
 	.pwrsts		  = PWRSTS_OFF_RET_ON,
 	.pwrsts_logic_ret = PWRSTS_OFF_RET,
 	.flags		  = PWRDM_HAS_HDWR_SAR, /* for USBTLL only */
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Anand Gadiyar

USBTLL Save-and-Restore is broken in 3630 ES1.0. Having it enabled could result in incorrect register restores as the OMAP exits off-mode. This could potentially result in unexpected wakeup events.

This is fixed in ES1.1. So disable it for ES1.0s.

Quoted 7 lines

---
This is a fix for buggy hardware, and it would be nice to see this in the next merge window too.

Depends on the patch I just posted which adds the CHIP_GE_OMAP3630ES1_1 macro
<https://patchwork.kernel.org/patch/111147/>

Verified against the OMAP3630 errata PDF from June 16. Anand, could you please add an erratum ID to the commit message or to a comment in the code?

Tony, once Anand does that, it's

if you want it for .36; otherwise, for .37, I'd be happy to queue it.

- Paul

#2 lore raw
Quoted 16 lines · Paul Walmsley
Quoted 13 lines · Anand Gadiyar

USBTLL Save-and-Restore is broken in 3630 ES1.0. Having it enabled could result in incorrect register restores as the OMAP exits off-mode. This could potentially result in unexpected wakeup events.

This is fixed in ES1.1. So disable it for ES1.0s.

---
This is a fix for buggy hardware, and it would be nice to see this in the next merge window too.

Quoted 7 lines
Quoted 2 lines

Depends on the patch I just posted which adds the CHIP_GE_OMAP3630ES1_1 macro
<https://patchwork.kernel.org/patch/111147/>

Verified against the OMAP3630 errata PDF from June 16. Anand, could you please add an erratum ID to the commit message or to a comment in the code?

Will do. I just noticed the errata doc has finally been updated with a proper ID that I can use here.

I'll resend in a short while.

Quoted 5 lines

Tony, once Anand does that, it's

if you want it for .36; otherwise, for .37, I'd be happy to queue it.

I assume you mean .35 and .36 here - isn't .37 another 3+ months away?

- Anand

#3 lore raw
Quoted 9 lines · Anand
Quoted 5 lines · Paul Walmsley

Tony, once Anand does that, it's

if you want it for .36; otherwise, for .37, I'd be happy to queue it.

I assume you mean .35 and .36 here - isn't .37 another 3+ months away?

I mean .35 and .36 -- we're operating under the idea that Linus only wants regressions for the -rc series; and due to summer vacations, Kevin and I have already sent our patch queues for .36 to Tony. So it's likely to be in .37, but it might get in for .36 depending on how schedules pan out. This patch seems quite straightforward to me.

- Paul