[PATCH NEXT 3/6] PCI/ERR: Cleanup ERR_FATAL of error broadcast
ERR_FATAL is handled by resetting the Link in software, skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, so now no more ERR_FATAL handling is required inside pci_broadcast_error_message() Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index 00d2875..3998ed7 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -259,15 +259,10 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, /* * If the error is reported by an end point, we think this * error is related to the upstream link of the end point. +* The error is non fatal so the bus is ok, just invoke +* the callback for the function that logged the error. */ - if (state == pci_channel_io_normal) - /* -* the error is non fatal so the bus is ok, just invoke -* the callback for the function that logged the error. -*/ - cb(dev, _data); - else - pci_walk_bus(dev->bus, cb, _data); + cb(dev, _data); } return result_data.result; -- 2.7.4
[PATCH NEXT 3/6] PCI/ERR: Cleanup ERR_FATAL of error broadcast
ERR_FATAL is handled by resetting the Link in software, skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, so now no more ERR_FATAL handling is required inside pci_broadcast_error_message() Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index 00d2875..3998ed7 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -259,15 +259,10 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, /* * If the error is reported by an end point, we think this * error is related to the upstream link of the end point. +* The error is non fatal so the bus is ok, just invoke +* the callback for the function that logged the error. */ - if (state == pci_channel_io_normal) - /* -* the error is non fatal so the bus is ok, just invoke -* the callback for the function that logged the error. -*/ - cb(dev, _data); - else - pci_walk_bus(dev->bus, cb, _data); + cb(dev, _data); } return result_data.result; -- 2.7.4