coreboot/src/device
Nico Huber f514b8ae82 device/pci_device: Fix PCIe bridge detection
PCI bus 0 is not below any PCI device. In case of pci_domain_scan_bus(),
it's our virtual `domain` device.

Expecting a PCI device above bus 0 resulted in undefined behavior for
all boards with PCI. Only boards with a PCI device 00:00.0 that looked
like a PCIe bridge showed issues, though (e.g. OCP/DeltaLake).

Change-Id: I1fd68b9dc0d2e388ec2bbba4adbadd33e14f0171
Signed-off-by: Nico Huber <nico.h@gmx.de>
Fixes: commit 777ffff442 (device/pci_device.c: Scan only one device for PCIe)
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62376
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-02-28 13:28:12 +00:00
..
dram device/dram/ddr2.c: Fix log messages 2022-02-08 16:18:42 +00:00
oprom treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
azalia_device.c treewide: Get rid of CONFIG_AZALIA_MAX_CODECS 2022-02-22 17:40:30 +00:00
cardbus_device.c
cpu_device.c
device.c device: Add helper function devfn_disable() 2021-06-17 06:48:45 +00:00
device_const.c device: Drop unused function dev_find_matching_device_on_bus 2021-09-24 21:20:07 +00:00
device_util.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
gpio.c
i2c.c
i2c_bus.c device/i2c_bus.c: Correct code style 2021-04-06 07:02:47 +00:00
Kconfig treewide: Get rid of CONFIG_AZALIA_MAX_CODECS 2022-02-22 17:40:30 +00:00
Makefile.inc device/mipi: Move to drivers/mipi 2021-08-26 15:18:45 +00:00
mmio.c device/mmio: Make buffer_to_fifo32() take a const buffer 2021-09-20 12:07:51 +00:00
pci_class.c
pci_device.c device/pci_device: Fix PCIe bridge detection 2022-02-28 13:28:12 +00:00
pci_early.c src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
pci_ops.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
pci_rom.c device/pci_rom: Add vga_oprom_preload 2021-11-15 16:16:02 +00:00
pciexp_device.c device: Add pciexp_find_next_extended_cap function 2022-02-10 12:48:00 +00:00
pcix_device.c
pnp_device.c treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
resource_allocator_common.c
resource_allocator_v3.c
resource_allocator_v4.c src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
root_device.c
smbus_ops.c
software_i2c.c
xhci.c