Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44917 )
Change subject: soc/intel/tigerlake: Enable and use USB4 PCIe driver ......................................................................
Patch Set 16:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44917/3/src/soc/intel/tigerlake/chi... File src/soc/intel/tigerlake/chipset.cb:
https://review.coreboot.org/c/coreboot/+/44917/3/src/soc/intel/tigerlake/chi... PS3, Line 8: chip drivers/intel/usb4/pcie : register "port_id" = "0" : use tbt_dma0 as usb4_port : device pci 07.0 alias tbt_pcie_rp0 off end : end
Aah I see now what you were saying. […]
So, I think this should help with #2:
diff --git a/src/device/pci_device.c b/src/device/pci_device.c index ce3e50967a..78ebdba73f 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1283,6 +1283,10 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn,
prev = &bus->children; for (dev = bus->children; dev; dev = dev->sibling) { + + if (dev->path.type != DEVICE_PATH_PCI) + continue; + /* * The device is only considered leftover if it is not hidden * and it has a Vendor ID of 0 (the default for a device that