From: Yoshinori Sato Date: Mon, 25 Apr 2016 06:41:01 +0000 (+0900) Subject: pci: Device scanning range fix X-Git-Tag: v2016.05-rc3~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d9f5b035d73129fe0ba4c0d28af55ee565e2490;p=u-boot 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 Reviewed-by: Bin Meng --- diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index c7fbf7bf66..32590ce498 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;