mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
dm: pci: Fix scanning multi-function device
The flag to control whether to scan multi-function device during enumeration should be cleared at the beginning of each iteration if the device's function number equals to zero. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1f6b08b969
commit
64e45f73bd
@ -745,6 +745,8 @@ int pci_bind_bus_devices(struct udevice *bus)
|
||||
struct udevice *dev;
|
||||
ulong class;
|
||||
|
||||
if (!PCI_FUNC(bdf))
|
||||
found_multi = false;
|
||||
if (PCI_FUNC(bdf) && !found_multi)
|
||||
continue;
|
||||
/* Check only the first access, we don't expect problems */
|
||||
|
Loading…
Reference in New Issue
Block a user