summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-05-22 16:47:59 +0400
committerJason Cooper <jason@lakedaemon.net>2014-05-22 18:25:57 +0400
commit4fbe63937eb2a54040de58d0726d4796412fba3d (patch)
tree25e1f7d2c6ffac031c5ed08c89fe78805ab0454d /arch
parent8828ccc3f2a8e32ddf1a0e1a80742e8482f18cea (diff)
downloadlinux-4fbe63937eb2a54040de58d0726d4796412fba3d.tar.xz
ARM: mvebu: fix big endian booting after coherency code rework
As part of the introduction of the cpuidle support for Armada XP, the coherency code was significantly reworked, especially in the coherency_ll.S file. However, when the ll_get_cpuid function was created, the big-endian specific code that switches the endianess of the register was not updated properly. This patch fixes this code, and therefore makes big endian systems bootable again. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Link: https://lkml.kernel.org/r/1400762882-10116-2-git-send-email-thomas.petazzoni@free-electrons.com Fixes: 2e8a5942f875 ("ARM: mvebu: Split low level functions to manipulate HW coherency") Reported-by: Kevin Hilman <khilman@linaro.org> Cc: Kevin Hilman <khilman@linaro.org> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mvebu/coherency_ll.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/coherency_ll.S b/arch/arm/mach-mvebu/coherency_ll.S
index 6828f9f157b0..a5e62c62819a 100644
--- a/arch/arm/mach-mvebu/coherency_ll.S
+++ b/arch/arm/mach-mvebu/coherency_ll.S
@@ -49,7 +49,7 @@ ENTRY(ll_get_cpuid)
and r3, r3, #15
mov r2, #(1 << 24)
lsl r3, r2, r3
-ARM_BE8(rev r1, r1)
+ARM_BE8(rev r3, r3)
mov pc, lr
ENDPROC(ll_get_cpuid)