From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] ARM: mach-shmobile: sh73a0 PSTR 32-bit access fix
Date: Mon, 30 Jan 2012 02:03:49 +0000 [thread overview]
Message-ID: <20120130020349.20367.65869.sendpatchset@w520> (raw)
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 */
reply other threads:[~2012-01-30 2:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120130020349.20367.65869.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.