acpi: remove "cannot get pci bus number for ..." debug prints
on almost all machines, we get tons of these prints for pci busses that are not physically there but are described in the ACPI namespace. the reason that we enumerate these is because we do not enumerate _INI and _STA methods to check if they are present. we just match the information with the PCI devices we enumerated with our generic pci code. this works fine and doesnt require aml code to poke arround in pci config space.
This commit is contained in:
parent
05825fd78e
commit
50cf738d69
|
@ -284,10 +284,8 @@ pcibusno(void *dot)
|
|||
return -1;
|
||||
tbdf = MKBUS(BusPCI, bno, adr>>16, adr&0xFFFF);
|
||||
pdev = pcimatchtbdf(tbdf);
|
||||
if(pdev == nil || pdev->bridge == nil){
|
||||
print("pcibusno: bridge tbdf %luX not found\n", (ulong)tbdf);
|
||||
if(pdev == nil || pdev->bridge == nil)
|
||||
return -1;
|
||||
}
|
||||
return BUSBNO(pdev->bridge->tbdf);
|
||||
}
|
||||
|
||||
|
@ -299,10 +297,8 @@ enumprt(void *dot, void *)
|
|||
int n, i;
|
||||
|
||||
bno = pcibusno(dot);
|
||||
if(bno < 0){
|
||||
print("enumprt: cannot get pci bus number for %V\n", dot);
|
||||
if(bno < 0)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* evalulate _PRT method */
|
||||
p = nil;
|
||||
|
|
Loading…
Reference in a new issue