Skip to contentSkip to conversation

ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix

PATCH New Magnus Damm 1 participant 1 message Jan 30, 2012

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix

From: Magnus Damm <[email protected]>

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

This fixes wakeup from deep sleep for sh73a0 secondary CPUs.

---

 arch/arm/mach-shmobile/smp-sh73a0.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/smp-sh73a0.c +1 -1
@@ -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 */