mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge branch 'pci/aer' into next
* pci/aer: PCI/AER: Return error if AER is not supported PCI/AER: Skip recovery callbacks for correctable errors from ACPI APEI
This commit is contained in:
commit
86e99150c3
1 changed files with 3 additions and 2 deletions
|
|
@ -633,7 +633,8 @@ static void aer_recover_work_func(struct work_struct *work)
|
|||
continue;
|
||||
}
|
||||
cper_print_aer(pdev, entry.severity, entry.regs);
|
||||
do_recovery(pdev, entry.severity);
|
||||
if (entry.severity != AER_CORRECTABLE)
|
||||
do_recovery(pdev, entry.severity);
|
||||
pci_dev_put(pdev);
|
||||
}
|
||||
}
|
||||
|
|
@ -660,7 +661,7 @@ static int get_device_error_info(struct pci_dev *dev, struct aer_err_info *info)
|
|||
|
||||
/* The device might not support AER */
|
||||
if (!pos)
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
if (info->severity == AER_CORRECTABLE) {
|
||||
pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS,
|
||||
|
|
|
|||
Loading…
Reference in a new issue