Yeah, this was in my v1. But changed as per Robert's comments, to be applicable for automated backports..- /* BIOS has CXL error control */
- if (!host_bridge->native_cxl_error)
- return -ENXIO;
+ /* BIOS has PCIe AER error control */
+ if (!host_bridge->native_aer)
+ return 0;
Why not directly use pcie_aer_is_native() here?
rc = pcie_capability_read_word(pdev, PCI_EXP_DEVCTL, &cap);
if (rc)