All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix
@ 2012-01-30  2:03 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2012-01-30  2:03 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Convert the sh73a0 SMP code to use 32-bit PSTR access.

This fixes wakeup from deep sleep for sh73a0 secondary CPUs.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/smp-sh73a0.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0009/arch/arm/mach-shmobile/smp-sh73a0.c
+++ work/arch/arm/mach-shmobile/smp-sh73a0.c	2012-01-26 14:37:04.000000000 +0900
@@ -84,7 +84,7 @@ int __cpuinit sh73a0_boot_secondary(unsi
 	/* enable cache coherency */
 	modify_scu_cpu_psr(cpu, 0);
 
-	if (((__raw_readw(__io(PSTR)) >> (4 * cpu)) & 3) = 3)
+	if (((__raw_readl(__io(PSTR)) >> (4 * cpu)) & 3) = 3)
 		__raw_writel(1 << cpu, __io(WUPCR));	/* wake up */
 	else
 		__raw_writel(1 << cpu, __io(SRESCR));	/* reset */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-30  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30  2:03 [PATCH] ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix Magnus Damm

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.