From: nitin.garg@freescale.com (Nitin Garg)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: errata: Fix the workaround for erratum 764369
Date: Mon, 31 Mar 2014 18:29:24 -0500 [thread overview]
Message-ID: <1396308564-4613-1-git-send-email-nitin.garg@freescale.com> (raw)
The SCU diagnostic control register at offset 0x30 is
write-only register, so do not do read-modify write.
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
---
arch/arm/kernel/smp_scu.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/arm/kernel/smp_scu.c b/arch/arm/kernel/smp_scu.c
index 1aafa0d..b0cca7e 100644
--- a/arch/arm/kernel/smp_scu.c
+++ b/arch/arm/kernel/smp_scu.c
@@ -42,9 +42,7 @@ void scu_enable(void __iomem *scu_base)
#ifdef CONFIG_ARM_ERRATA_764369
/* Cortex-A9 only */
if ((read_cpuid_id() & 0xff0ffff0) == 0x410fc090) {
- scu_ctrl = readl_relaxed(scu_base + 0x30);
- if (!(scu_ctrl & 1))
- writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30);
+ writel_relaxed(0x1, scu_base + 0x30);
}
#endif
--
1.7.4.1
next reply other threads:[~2014-03-31 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 23:29 Nitin Garg [this message]
2014-04-01 8:32 ` [PATCH] ARM: errata: Fix the workaround for erratum 764369 Vladimir Murzin
2014-04-14 13:29 ` Will Deacon
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=1396308564-4613-1-git-send-email-nitin.garg@freescale.com \
--to=nitin.garg@freescale.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).