Only touch PCI functions > 0 on multi-function devices; rescan max pci each time.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 30 Nov 2008 01:31:49 +0000 (20:31 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 30 Nov 2008 01:31:49 +0000 (20:31 -0500)
commite633832efdba79b082a9d103eebc7f3d1e2459b9
tree1d16bc29eaceb4baedd69fa67c9c8014e66cf793
parent3f168b6c7c4e1ab189eeeead60e40b16fac880b9
Only touch PCI functions > 0 on multi-function devices; rescan max pci each time.

Some single-function devices will respond to all sub-functions - and
    this confuses things.  So, when scanning the PCI bus make sure to
    only touch function 0 on single-function devices.
Since the bus scanning code is necessarily complex now, we might as
    well implement max bus detection inline with all pci scans.  So,
    there is no need to scan for the max bus at startup.
src/optionroms.c
src/pci.c
src/pci.h
src/pcibios.c
src/pciinit.c
src/post.c