PCI/portdrv: Don't disable AER reporting in get_port_device_capability()
[platform/kernel/linux-rpi.git] / drivers / pci / pcie / portdrv_core.c
index 604feeb..1ac7fec 100644 (file)
@@ -222,15 +222,8 @@ static int get_port_device_capability(struct pci_dev *dev)
 
 #ifdef CONFIG_PCIEAER
        if (dev->aer_cap && pci_aer_available() &&
-           (pcie_ports_native || host->native_aer)) {
+           (pcie_ports_native || host->native_aer))
                services |= PCIE_PORT_SERVICE_AER;
-
-               /*
-                * Disable AER on this port in case it's been enabled by the
-                * BIOS (the AER service driver will enable it when necessary).
-                */
-               pci_disable_pcie_error_reporting(dev);
-       }
 #endif
 
        /* Root Ports and Root Complex Event Collectors may generate PMEs */