]> git.sur5r.net Git - u-boot/commitdiff
pci: Device scanning range fix
authorYoshinori Sato <ysato@users.sourceforge.jp>
Mon, 25 Apr 2016 06:41:01 +0000 (15:41 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2016 19:10:43 +0000 (15:10 -0400)
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 <ysato@users.sourceforge.jp>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c

index c7fbf7bf669102bd20755e60997ef8528a3c6124..32590ce498a7505971faaefe4324d0205d581f16 100644 (file)
@@ -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;