From dd817408e127105da1fd68e078d73fc523549a9e Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 13 Feb 2025 13:03:37 +0100 Subject: [PATCH] device/pci_device: Fix leftover devices Don't print leftover devices when they are disabled in the devicetree. It's expected to not find a device when it's not enabled. Change-Id: Ia6e998d3088fbd329f976e66a92e08ecae9f760a Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/86491 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes Reviewed-by: Maximilian Brune Reviewed-by: Paul Menzel --- src/device/pci_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/pci_device.c b/src/device/pci_device.c index 202e8b5055..d7f6a3ad34 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1442,7 +1442,7 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn, * and it has a Vendor ID of 0 (the default for a device that * could not be probed). */ - if (dev->vendor != 0 || dev->hidden) { + if (dev->vendor != 0 || dev->hidden || !dev->enabled) { prev = &dev->sibling; continue; }