All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP3: PM: fix scratchpad memory accesses for off-mode
@ 2010-10-08 22:43 Kevin Hilman
  2010-10-11 17:03 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hilman @ 2010-10-08 22:43 UTC (permalink / raw)
  To: linux-omap; +Cc: jean.pihet, G, Manjunath Kondaiah

Commit 914bab936fe0388a529079679e2f137aa4ff548d (OMAP: mach-omap2: Fix
incorrect assignment warnings) changed a pointer from 'u32 *' to
'void *' without also fixing up the pointer arithmetic.

Fix the scratchpad offsets so they are byte offsets instead of
word offsets and thus work correctly with a void pointer base.

Special thanks to Jean Pihet for taking the time track down this
problem and propose an initial solution.

Tested with off-idle and off-suspend on 36xx/Zoom3 and 34xx/omap3evm.

Cc: G, Manjunath Kondaiah <manjugk@ti.com>
Reported-by: Jean Pihet <jean.pihet@newoldbits.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
---
Tony, we need this queued for 2.6.37 as this is a regression fix.

 arch/arm/mach-omap2/pm34xx.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 8c8f1ac..75c0cd1 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -50,9 +50,9 @@
 #include "control.h"
 
 /* Scratchpad offsets */
-#define OMAP343X_TABLE_ADDRESS_OFFSET	   0x31
-#define OMAP343X_TABLE_VALUE_OFFSET	   0x30
-#define OMAP343X_CONTROL_REG_VALUE_OFFSET  0x32
+#define OMAP343X_TABLE_ADDRESS_OFFSET	   0xc4
+#define OMAP343X_TABLE_VALUE_OFFSET	   0xc0
+#define OMAP343X_CONTROL_REG_VALUE_OFFSET  0xc8
 
 struct power_state {
 	struct powerdomain *pwrdm;
-- 
1.7.2.1


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

* Re: [PATCH] OMAP3: PM: fix scratchpad memory accesses for off-mode
  2010-10-08 22:43 [PATCH] OMAP3: PM: fix scratchpad memory accesses for off-mode Kevin Hilman
@ 2010-10-11 17:03 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2010-10-11 17:03 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-omap, jean.pihet, G, Manjunath Kondaiah

* Kevin Hilman <khilman@deeprootsystems.com> [101008 15:35]:
> Commit 914bab936fe0388a529079679e2f137aa4ff548d (OMAP: mach-omap2: Fix
> incorrect assignment warnings) changed a pointer from 'u32 *' to
> 'void *' without also fixing up the pointer arithmetic.
> 
> Fix the scratchpad offsets so they are byte offsets instead of
> word offsets and thus work correctly with a void pointer base.
> 
> Special thanks to Jean Pihet for taking the time track down this
> problem and propose an initial solution.
> 
> Tested with off-idle and off-suspend on 36xx/Zoom3 and 34xx/omap3evm.
> 
> Cc: G, Manjunath Kondaiah <manjugk@ti.com>
> Reported-by: Jean Pihet <jean.pihet@newoldbits.com>
> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
> ---
> Tony, we need this queued for 2.6.37 as this is a regression fix.

Thanks, adding to omap-for-linus.

Tony

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

end of thread, other threads:[~2010-10-11 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-08 22:43 [PATCH] OMAP3: PM: fix scratchpad memory accesses for off-mode Kevin Hilman
2010-10-11 17:03 ` Tony Lindgren

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.