|
@@ -1116,8 +1116,9 @@ int aer_get_device_error_info(struct pci_dev *dev, struct aer_err_info *info)
|
|
|
&info->mask);
|
|
|
if (!(info->status & ~info->mask))
|
|
|
return 0;
|
|
|
- } else if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE ||
|
|
|
- info->severity == AER_NONFATAL) {
|
|
|
+ } else if (pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
|
|
|
+ pci_pcie_type(dev) == PCI_EXP_TYPE_DOWNSTREAM ||
|
|
|
+ info->severity == AER_NONFATAL) {
|
|
|
|
|
|
/* Link is still healthy for IO reads */
|
|
|
pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS,
|