From 42927e8273c5d9f39196baa4f5e2bc83a04caa45 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 29 Jan 2026 10:43:20 -0600 Subject: [PATCH] device/pci_device: Fix comment for leftover devices Commit dd817408e127 ("device/pci_device: Fix leftover devices") changed the conditions for a device to be considered leftover to include not being disabled, so update the comment to reflect that. Change-Id: If80a5aae00ba97c1e0580dedb460a605a71bb627 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/90998 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/device/pci_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/pci_device.c b/src/device/pci_device.c index d7f6a3ad34..a0a8df3d4d 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1438,8 +1438,8 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn, } /* - * 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 + * The device is only considered leftover if it is enabled, not + * hidden, and has a Vendor ID of 0 (the default for a device that * could not be probed). */ if (dev->vendor != 0 || dev->hidden || !dev->enabled) {