mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
pci: Honour pci_skip_dev()
When enumerating devices, honour the pci_skip_dev() function. This can be used by PCI controller drivers to restrict which devices will be probed. This is required by the NVIDIA Tegra PCIe controller driver, which will fail with a data abort exception if an access is attempted to a device number larger than 0 outside of bus 0. pci_skip_dev() is therefore implemented to prevent any such accesses. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
042b83d4c5
commit
4efe52bf23
3 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,9 @@ void pciinfo(int BusNum, int ShortPCIListing)
|
|||
|
||||
dev = PCI_BDF(BusNum, Device, Function);
|
||||
|
||||
if (pci_skip_dev(hose, dev))
|
||||
continue;
|
||||
|
||||
pci_read_config_word(dev, PCI_VENDOR_ID, &VendorID);
|
||||
if ((VendorID == 0xFFFF) || (VendorID == 0x0000))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue