We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea4baee commit 85d621dCopy full SHA for 85d621d
sdk/linux_kernel_drivers/xdma/xdma_mod.c
@@ -296,7 +296,11 @@ static void xdma_error_resume(struct pci_dev *pdev)
296
struct xdma_pci_dev *xpdev = dev_get_drvdata(&pdev->dev);
297
298
pr_info("dev 0x%p,0x%p.\n", pdev, xpdev);
299
+#if KERNEL_VERSION(5, 7, 0) <= LINUX_VERSION_CODE
300
+ pci_aer_clear_nonfatal_status(pdev);
301
+#else
302
pci_cleanup_aer_uncorrect_error_status(pdev);
303
+#endif
304
}
305
306
#if KERNEL_VERSION(4, 13, 0) <= LINUX_VERSION_CODE
0 commit comments