From: Magnus Damm Date: Mon, 30 Jan 2012 02:03:49 +0000 (+0900) Subject: ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix X-Git-Tag: upstream/snapshot3+hdmi~8106^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=689189fb014203965ed89833d8d5566424540c9d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix 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 Signed-off-by: Paul Mundt --- diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c index 0d159d6..2d0d421 100644 --- a/arch/arm/mach-shmobile/smp-sh73a0.c +++ b/arch/arm/mach-shmobile/smp-sh73a0.c @@ -80,7 +80,7 @@ int __cpuinit sh73a0_boot_secondary(unsigned int cpu) /* enable cache coherency */ modify_scu_cpu_psr(0, 3 << (cpu * 8)); - 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 */