MIPS: Malta: fix alignment of the devicetree buffer
authorOleksij Rempel <o.rempel@pengutronix.de>
Thu, 2 Sep 2021 07:19:51 +0000 (09:19 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 2 Sep 2021 08:18:26 +0000 (10:18 +0200)
commitbea6a94a279bcbe6b2cde348782b28baf12255a5
tree4f79541a5db2f12af8ca5831fa0e81d5460a3973
parent71f8817c28e2e1e5549138e2aef68c2fd784e162
MIPS: Malta: fix alignment of the devicetree buffer

Starting with following patch MIPS Malta is not able to boot:
| commit 79edff12060fe7772af08607eff50c0e2486c5ba
| Author: Rob Herring <robh@kernel.org>
| scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9

The reason is the alignment test added to the fdt_ro_probe_(). To fix
this issue, we need to make sure that fdt_buf is aligned.

Since the dtc patch was designed to uncover potential issue, I handle
initial MIPS Malta patch as initial bug.

Fixes: e81a8c7dabac ("MIPS: Malta: Setup RAM regions via DT")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mti-malta/malta-dtshim.c