PCI/ERR: Rename reset_link() to reset_subordinates()
commit8f1bbfbc35
upstream. reset_link() appears to be misnamed. The point is to reset any devices below a given bridge, so rename it to reset_subordinates() to make it clear that we are passing a bridge with the intent to reset the devices below it. Intel-SIG: commit8f1bbfbc35
PCI/ERR: Rename reset_link() to reset_subordinates(). Backport for enable PCIe/RCEC. Link: https://lore.kernel.org/r/20201121001036.8560-5-sean.v.kelley@intel.com Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # non-native/no RCEC Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> [ Youquan Song amend commit log ] Signed-off-by: Youquan Song <youquan.song@intel.com>
This commit is contained in:
parent
67afa070ac
commit
017cbfcf3b
|
@ -576,8 +576,8 @@ static inline int pci_dev_specific_disable_acs_redir(struct pci_dev *dev)
|
|||
|
||||
/* PCI error reporting and recovery */
|
||||
pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
|
||||
enum pci_channel_state state,
|
||||
pci_ers_result_t (*reset_link)(struct pci_dev *pdev));
|
||||
pci_channel_state_t state,
|
||||
pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev));
|
||||
|
||||
bool pcie_wait_for_link(struct pci_dev *pdev, bool active);
|
||||
#ifdef CONFIG_PCIEASPM
|
||||
|
|
|
@ -147,8 +147,8 @@ out:
|
|||
}
|
||||
|
||||
pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
|
||||
enum pci_channel_state state,
|
||||
pci_ers_result_t (*reset_link)(struct pci_dev *pdev))
|
||||
pci_channel_state_t state,
|
||||
pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev))
|
||||
{
|
||||
pci_ers_result_t status = PCI_ERS_RESULT_CAN_RECOVER;
|
||||
struct pci_bus *bus;
|
||||
|
@ -165,8 +165,8 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
|
|||
pci_dbg(dev, "broadcast error_detected message\n");
|
||||
if (state == pci_channel_io_frozen) {
|
||||
pci_walk_bus(bus, report_frozen_detected, &status);
|
||||
if (reset_link(dev) != PCI_ERS_RESULT_RECOVERED) {
|
||||
pci_warn(dev, "link reset failed\n");
|
||||
if (reset_subordinates(dev) != PCI_ERS_RESULT_RECOVERED) {
|
||||
pci_warn(dev, "subordinate device reset failed\n");
|
||||
goto failed;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue