diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-07-17 01:34:30 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-07-22 23:38:35 +0300 |
commit | 600a5b4fc8e8f6dad098cd50e0e727cb2a16be46 (patch) | |
tree | 990fac1fc45509466fd37be9abb463a9be14ca9f /drivers/pci/pcie/err.c | |
parent | e83e2ca3c39553a9d0fd497d9c839b341e38c742 (diff) | |
download | linux-600a5b4fc8e8f6dad098cd50e0e727cb2a16be46.tar.xz |
PCI/ERR: Rename pci_aer_clear_device_status() to pcie_clear_device_status()
pci_aer_clear_device_status() clears the error bits in the PCIe Device
Status Register (PCI_EXP_DEVSTA). Every PCIe device has this register,
regardless of whether it supports AER.
Rename pci_aer_clear_device_status() to pcie_clear_device_status() to make
clear that it is PCIe-specific but not AER-specific. Move it to
drivers/pci/pci.c, again since it's not AER-specific. No functional change
intended.
Link: https://lore.kernel.org/r/20200717195619.766662-1-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/err.c')
-rw-r--r-- | drivers/pci/pcie/err.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index 467686ee2d8b..55755bc493f1 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -197,7 +197,7 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, pci_dbg(dev, "broadcast resume message\n"); pci_walk_bus(bus, report_resume, &status); - pci_aer_clear_device_status(dev); + pcie_clear_device_status(dev); pci_aer_clear_nonfatal_status(dev); pci_info(dev, "device recovery successful\n"); return status; |