return true;
}
-static bool cxl_error_is_native(struct pci_dev *dev)
-{
- struct pci_host_bridge *host = pci_find_host_bridge(dev->bus);
-
- return (pcie_ports_native || host->native_aer);
-}
-
static bool is_internal_error(struct aer_err_info *info)
{
if (info->severity == AER_CORRECTABLE)
struct aer_err_info *info = (struct aer_err_info *)data;
const struct pci_error_handlers *err_handler;
- if (!is_cxl_mem_dev(dev) || !cxl_error_is_native(dev))
+ if (!is_cxl_mem_dev(dev) || !pcie_aer_is_native(dev))
return 0;
/* Protect dev->driver */
bool *handles_cxl = data;
if (!*handles_cxl)
- *handles_cxl = is_cxl_mem_dev(dev) && cxl_error_is_native(dev);
+ *handles_cxl = is_cxl_mem_dev(dev) && pcie_aer_is_native(dev);
/* Non-zero terminates iteration */
return *handles_cxl;