ARM: footbridge: fix dc21285 PCI configuration accessors
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 18 Oct 2020 08:39:21 +0000 (09:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:20 +0000 (09:29 +0100)
commit384cddbee46f07b029c7b44622d504e6ec4b3e22
tree94d58829f70a40e402a1f9b22f34ee87086203ae
parentcc7b2fc9091626be615a938aa18c697e95ee0a97
ARM: footbridge: fix dc21285 PCI configuration accessors

commit 39d3454c3513840eb123b3913fda6903e45ce671 upstream.

Building with gcc 4.9.2 reveals a latent bug in the PCI accessors
for Footbridge platforms, which causes a fatal alignment fault
while accessing IO memory. Fix this by making the assembly volatile.

Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-footbridge/dc21285.c