device/pci_device: Fix comment for leftover devices
Commit dd817408e1 ("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 <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90998
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
616469062a
commit
42927e8273
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue