aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-09-26 16:50:55 +0100
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:57:48 +0200
commit7032265c6b8be161a9db706b6102138fc138ae1b (patch)
treebe2c51e09768a34a53b811f0636419bdaa3500e2 /scripts
parent733647c4b0aa2e649f468854e54470ef4475f4b4 (diff)
ARM: 8616/1: dt: Respect property size when parsing CPUs
commit ba6dea4f7cedb4b1c17e36f4087675d817c2e24b upstream. Whilst MPIDR values themselves are less than 32 bits, it is still perfectly valid for a DT to have #address-cells > 1 in the CPUs node, resulting in the "reg" property having leading zero cell(s). In that situation, the big-endian nature of the data conspires with the current behaviour of only reading the first cell to cause the kernel to think all CPUs have ID 0, and become resoundingly unhappy as a consequence. Take the full property length into account when parsing CPUs so as to be correct under any circumstances. Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions