mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 22:50:06 +01:00
int10: Don't warn when scanning for devices we don't have.
Some BIOSes (hi XGI!) will attempt to enumerate the PCI bus by asking for the config space of every possible device number. This despite perfectly functional BIOS methods to enumerate the bus exactly.
This commit is contained in:
parent
a65e36a873
commit
a57b2f172c
1 changed files with 1 additions and 7 deletions
|
|
@ -478,15 +478,9 @@ pci_device_for_cfg_address (CARD32 addr)
|
|||
|
||||
struct pci_device_iterator *iter =
|
||||
pci_slot_match_iterator_create (&slot_match);
|
||||
|
||||
if (iter)
|
||||
dev = pci_device_next(iter);
|
||||
if (!dev) {
|
||||
char buf[128]; /* enough to store "%u@%u" */
|
||||
xf86FormatPciBusNumber(tag >> 16, buf);
|
||||
ErrorF("Failed to find device matching %s:%u:%u\n",
|
||||
buf, slot_match.dev, slot_match.func);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue