Skip to content

Commit 9ffb98f

Browse files
stroesebjorn-helgaas
authored andcommitted
PCI/AER: Configure ECRC for every device
Move pcie_set_ecrc_checking() to pci_aer_init() to make sure that pcie_set_ecrc_checking() is called for each PCIe device, including hot-added devices. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Roese <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Pali Rohár <[email protected]> Cc: Bharat Kumar Gogada <[email protected]> Cc: Michal Simek <[email protected]> Cc: Yao Hongbo <[email protected]> Cc: Naveen Naidu <[email protected]>
1 parent 6cd514e commit 9ffb98f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pci/pcie/aer.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ void pci_aer_init(struct pci_dev *dev)
392392
pci_add_ext_cap_save_buffer(dev, PCI_EXT_CAP_ID_ERR, sizeof(u32) * n);
393393

394394
pci_aer_clear_status(dev);
395+
396+
pcie_set_ecrc_checking(dev);
395397
}
396398

397399
void pci_aer_exit(struct pci_dev *dev)
@@ -1228,9 +1230,6 @@ static int set_device_error_reporting(struct pci_dev *dev, void *data)
12281230
pci_disable_pcie_error_reporting(dev);
12291231
}
12301232

1231-
if (enable)
1232-
pcie_set_ecrc_checking(dev);
1233-
12341233
return 0;
12351234
}
12361235

0 commit comments

Comments
 (0)