parisc: advertise PCI devs after "assign_resources"
authorGrant Grundler <grundler@parisc-linux.org>
Mon, 20 Apr 2009 04:28:22 +0000 (04:28 +0000)
committerKyle McMartin <kyle@mcmartin.ca>
Fri, 3 Jul 2009 03:34:07 +0000 (03:34 +0000)
commitfed99b1e86f5ff4f1b41e37264bb869da67d3174
treeeea44830caf663e97041dbb90a2f74cb7e28a1b3
parent7d17e2763129ea307702fcdc91f6e9d114b65c2d
parisc: advertise PCI devs after "assign_resources"

Alex Chiang asked me why PARISC was calling pci_bus_add_devices()
and pci_bus_assign_resources() in the opposite order from everyone else.
No reason and I couldn't see any data dependency.
Patch below applies cleanly to 2.6.30-rc2.

Later, I suspected the code worked only because no drivers would be
loaded/ready until much later in the system initialization sequence.

Tested "LBA" code on J6000 (32-bit) and A500 (64-bit SMP) with 2.6.30-rc2.
Not tested with any Dino controllers.
Not tested with PCI-PCI Bridge (TBD).

Reported-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
drivers/parisc/dino.c
drivers/parisc/lba_pci.c