mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-03 16:13:17 +01:00
PCI/AER: Log which device prevents error recovery
PCI error recovery will fail if any device under the Root Port doesn't have an error_detected callback. Currently only the failure result is printed, which is not enough to identify the driver that lacks the callback. Log a message to identify the device with no error_detected callback. [bhelgaas: tweak log message] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yicong Yang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
1 parent
e42617b825
commit
01daacfb90
1 file changed
+4
-2
@@ -61,10 +61,12 @@ static int report_error_detected(struct pci_dev *dev,
|
||||
* error callbacks of "any" device in the subtree, and will
|
||||
* exit in the disconnected error state.
|
||||
*/
|
||||
if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE)
|
||||
if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) {
|
||||
vote = PCI_ERS_RESULT_NO_AER_DRIVER;
|
||||
else
|
||||
pci_info(dev, "AER: Can't recover (no error_detected callback)\n");
|
||||
} else {
|
||||
vote = PCI_ERS_RESULT_NONE;
|
||||
}
|
||||
} else {
|
||||
err_handler = dev->driver->err_handler;
|
||||
vote = err_handler->error_detected(dev, state);
|
||||
|
||||
Reference in new issue
Block a user