From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Thu, 23 Feb 2012 05:32:39 +0000 Subject: [PATCH 02/05] ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix Message-Id: <20120223053239.2040.80165.sendpatchset@w520> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org From: Magnus Damm 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 --- 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 */