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:12:09 +0000 (09:12 +0100)
commitc916f02bae2327a4299405979131ddd7e97ddba1
treee67949ea26648433ff9ffab460e789da6da87922
parent70a813ab11f647bcfccc6e535001423db9592d19
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