|
@@ -59,8 +59,7 @@ static int aer_hest_parse(struct acpi_hest_header *hest_hdr, void *data)
|
|
|
|
|
|
p = (struct acpi_hest_aer_common *)(hest_hdr + 1);
|
|
|
if (p->flags & ACPI_HEST_GLOBAL) {
|
|
|
- if ((pci_is_pcie(info->pci_dev) &&
|
|
|
- pci_pcie_type(info->pci_dev) == pcie_type) || bridge)
|
|
|
+ if ((pci_pcie_type(info->pci_dev) == pcie_type) || bridge)
|
|
|
ff = !!(p->flags & ACPI_HEST_FIRMWARE_FIRST);
|
|
|
} else
|
|
|
if (hest_match_pci(p, info->pci_dev))
|
|
@@ -89,6 +88,9 @@ static void aer_set_firmware_first(struct pci_dev *pci_dev)
|
|
|
|
|
|
int pcie_aer_get_firmware_first(struct pci_dev *dev)
|
|
|
{
|
|
|
+ if (!pci_is_pcie(dev))
|
|
|
+ return 0;
|
|
|
+
|
|
|
if (!dev->__aer_firmware_first_valid)
|
|
|
aer_set_firmware_first(dev);
|
|
|
return dev->__aer_firmware_first;
|