mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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 <ysato@users.sourceforge.jp> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
cacd1d2f33
commit
6d9f5b035d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue