mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: inteltool: Don't use PCI_FILL_SIZES
This is supposed to fill the `size[]` array with the actual sizes of
a device' MMIO ranges, but apparently isn't implemented for every
access method in libpci (we let the library choose one). It tells us
by clearing `PCI_FILL_SIZES` in the return value of `pci_fill_info()`
(which we don't check). Since we don't ever use `size`, we can just
make it clear and don't ask for it.
BUG=none
BRANCH=none
TEST=none
Change-Id: I71907d75cae5d5acb5434a2e1f13fb6daaaca67e
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: ac826c8fd7
Original-Change-Id: I3fb9334472f1c7563a9e17910190f73affbe067a
Original-Signed-off-by: Nico Huber <nico.huber@secunet.com>
Original-Reviewed-on: https://review.coreboot.org/19582
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/528177
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
b5baf68aa7
commit
1f812b442c
1 changed files with 6 additions and 4 deletions
|
@ -425,7 +425,7 @@ int main(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
pci_fill_info(sb, PCI_FILL_IDENT|PCI_FILL_BASES|PCI_FILL_SIZES|PCI_FILL_CLASS);
|
||||
pci_fill_info(sb, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS);
|
||||
|
||||
if (sb->vendor_id != PCI_VENDOR_ID_INTEL) {
|
||||
printf("Not an Intel(R) southbridge.\n");
|
||||
|
@ -438,7 +438,7 @@ int main(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
pci_fill_info(nb, PCI_FILL_IDENT|PCI_FILL_BASES|PCI_FILL_SIZES|PCI_FILL_CLASS);
|
||||
pci_fill_info(nb, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS);
|
||||
|
||||
if (nb->vendor_id != PCI_VENDOR_ID_INTEL) {
|
||||
printf("Not an Intel(R) northbridge.\n");
|
||||
|
@ -448,7 +448,8 @@ int main(int argc, char *argv[])
|
|||
gfx = pci_get_dev(pacc, 0, 0, 0x02, 0);
|
||||
|
||||
if (gfx) {
|
||||
pci_fill_info(gfx, PCI_FILL_IDENT|PCI_FILL_BASES|PCI_FILL_SIZES|PCI_FILL_CLASS);
|
||||
pci_fill_info(gfx, PCI_FILL_IDENT | PCI_FILL_BASES |
|
||||
PCI_FILL_CLASS);
|
||||
|
||||
if (gfx->vendor_id != PCI_VENDOR_ID_INTEL)
|
||||
gfx = 0;
|
||||
|
@ -460,7 +461,8 @@ int main(int argc, char *argv[])
|
|||
ahci = pci_get_dev(pacc, 0, 0, 0x1f, 2);
|
||||
|
||||
if (ahci) {
|
||||
pci_fill_info(ahci, PCI_FILL_IDENT|PCI_FILL_BASES|PCI_FILL_SIZES|PCI_FILL_CLASS);
|
||||
pci_fill_info(ahci, PCI_FILL_IDENT | PCI_FILL_BASES |
|
||||
PCI_FILL_CLASS);
|
||||
|
||||
if (ahci->vendor_id != PCI_VENDOR_ID_INTEL)
|
||||
ahci = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue