diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index fef159a68081..92a8469b21ba 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -117,6 +117,21 @@ int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) | |||
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
119 | 119 | ||
120 | int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) | ||
121 | { | ||
122 | int pos; | ||
123 | u32 status; | ||
124 | |||
125 | pos = pci_find_aer_capability(dev); | ||
126 | if (!pos) | ||
127 | return -EIO; | ||
128 | |||
129 | pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); | ||
130 | pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); | ||
131 | |||
132 | return 0; | ||
133 | } | ||
134 | |||
120 | static int find_device_iter(struct device *device, void *data) | 135 | static int find_device_iter(struct device *device, void *data) |
121 | { | 136 | { |
122 | struct pci_dev *dev; | 137 | struct pci_dev *dev; |
@@ -741,4 +756,5 @@ EXPORT_SYMBOL_GPL(pci_find_aer_capability); | |||
741 | EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting); | 756 | EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting); |
742 | EXPORT_SYMBOL_GPL(pci_disable_pcie_error_reporting); | 757 | EXPORT_SYMBOL_GPL(pci_disable_pcie_error_reporting); |
743 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); | 758 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); |
759 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_correct_error_status); | ||
744 | 760 | ||