summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshinori Sato <[email protected]>2016-04-25 15:41:01 +0900
committerTom Rini <[email protected]>2016-04-25 15:10:43 -0400
commit6d9f5b035d73129fe0ba4c0d28af55ee565e2490 (patch)
tree35bd8c6a0919db68340d1f4639437d1b21f55395
parentcacd1d2f33da2d78e8568f2e48539a4a57de20ae (diff)
pci: Device scanning range fix
The terminal condition in the area where a PCI device is scanned is wrong, and 1f.7 isn't scanned. Signed-off-by: Yoshinori Sato <[email protected]> Reviewed-by: Bin Meng <[email protected]>
-rw-r--r--drivers/pci/pci-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index c7fbf7bf669..32590ce498a 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -682,7 +682,7 @@ int pci_bind_bus_devices(struct udevice *bus)
found_multi = false;
end = PCI_BDF(bus->seq, PCI_MAX_PCI_DEVICES - 1,
PCI_MAX_PCI_FUNCTIONS - 1);
- for (bdf = PCI_BDF(bus->seq, 0, 0); bdf < end;
+ for (bdf = PCI_BDF(bus->seq, 0, 0); bdf <= end;
bdf += PCI_BDF(0, 0, 1)) {
struct pci_child_platdata *pplat;
struct udevice *dev;