linux/arch/m68k/coldfire
Yijing Wang c90570d951 PCI: Assign resources before drivers claim devices (pci_scan_bus())
Previously, pci_scan_bus() created a root PCI bus, enumerated the devices
on it, and called pci_bus_add_devices(), which made the devices available
for drivers to claim them.

Most callers assigned resources to devices after pci_scan_bus() returns,
which may be after drivers have claimed the devices.  This is incorrect;
the PCI core should not change device resources while a driver is managing
the device.

Remove pci_bus_add_devices() from pci_scan_bus() and do it after any
resource assignment in the callers.

[bhelgaas: changelog, check for failure in mcf_pci_init()]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Geert Uytterhoeven <geert@linux-m68k.org>
CC: Guan Xuetao <gxt@mprc.pku.edu.cn>
CC: Richard Henderson <rth@twiddle.net>
CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
CC: Matt Turner <mattst88@gmail.com>
2015-03-12 15:04:01 -05:00
..
cache.c
clk.c
device.c
dma_timer.c
dma.c
entry.S
firebee.c
gpio.c
head.S
intc-2.c
intc-525x.c
intc-5249.c
intc-5272.c m68knommu: fix size of address field for 5272 interrupt controller 2014-09-29 09:18:36 +10:00
intc-simr.c
intc.c
m53xx.c
m54xx.c m68k/coldfire: remove second asm/mcfclk.h inclusion in m54xx.c 2014-09-29 09:18:36 +10:00
m520x.c
m523x.c
m525x.c
m527x.c
m528x.c
m5206.c
m5249.c
m5272.c
m5307.c
m5407.c
m5441x.c
Makefile
mcf8390.c
nettel.c
pci.c PCI: Assign resources before drivers claim devices (pci_scan_bus()) 2015-03-12 15:04:01 -05:00
pit.c
reset.c
sltimers.c
timers.c
vectors.c