pci: properly scan all device resources
The change in commit e5349d74ab12d3a4c6c87f8723ed3c9a5355ae1b
results in only one resource being returned for a device with
pci_bus_scan(). The root cause for that issue was actually
because of wrapping around when scanning through BARs, where
BARs were scanned 0->1->2->..->6->0->1->.. in an endless loop
for a single bus:dev.function. So revert that commit and put
in a fix by moving on to the next function after going
through all the BARs.
Fixes #1550
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 file changed