@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/kfifo.h>
+#include <linux/delay.h>
#include "aerdrv.h"
#define PCI_EXP_AER_FLAGS (PCI_EXP_DEVCTL_CERE | PCI_EXP_DEVCTL_NFERE | \
@@ -740,8 +741,10 @@ static void aer_isr_one_error(struct pcie_device *p_device,
aer_print_port_info(p_device->port, e_info);
- if (find_source_device(p_device->port, e_info))
+ if (find_source_device(p_device->port, e_info)) {
+ msleep(350);
aer_process_err_devices(p_device, e_info);
+ }
}
if (e_src->status & PCI_ERR_ROOT_UNCOR_RCV) { @@ -759,8 +762,10 @@ static void aer_isr_one_error(struct pcie_device *p_device,