]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
m68k: fix ColdFire PCI config reads and writes
authorGreg Ungerer <gerg@linux-m68k.org>
Wed, 11 Apr 2018 03:39:44 +0000 (13:39 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:27 +0000 (09:45 +1000)
commit082f55c459845088c3fee99c3a88ee117c148218
tree8c321b25d043797a12cef6ac7407c5b43c274947
parent48074d2615add385e6357fc1333959fc778557f9
m68k: fix ColdFire PCI config reads and writes

The ColdFire PCI configuration space access functions swap addressing
regions to do their work. Just letting the read/write cycles exit
the CPU core (via the ColdFire "nop" instruction) is not enough to
guarantee that the address region remapping has actually completed.
Insert a read back of the mapping register to be absolutely sure
that the remapping has completed.

This fixes an occasional boot hang during the ColdFire PCI initialization
phase.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/coldfire/pci.c