diff options
Diffstat (limited to 'drivers/misc/cxl')
-rw-r--r-- | drivers/misc/cxl/flash.c | 2 | ||||
-rw-r--r-- | drivers/misc/cxl/pci.c | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/drivers/misc/cxl/flash.c b/drivers/misc/cxl/flash.c index c63d61e..7c61c70 100644 --- a/drivers/misc/cxl/flash.c +++ b/drivers/misc/cxl/flash.c @@ -343,7 +343,7 @@ static int transfer_image(struct cxl *adapter, int operation, return rc; } if (rc == 0) { - pr_devel("remove curent afu\n"); + pr_devel("remove current afu\n"); for (afu = 0; afu < adapter->slices; afu++) cxl_guest_remove_afu(adapter->afu[afu]); diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index c8e9e43..6dc1ee5 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -2068,15 +2068,14 @@ static pci_ers_result_t cxl_pci_error_detected(struct pci_dev *pdev, /* If we're permanently dead, give up. */ if (state == pci_channel_io_perm_failure) { - /* Tell the AFU drivers; but we don't care what they - * say, we're going away. - */ for (i = 0; i < adapter->slices; i++) { afu = adapter->afu[i]; - /* Only participate in EEH if we are on a virtual PHB */ - if (afu->phb == NULL) - return PCI_ERS_RESULT_NONE; - cxl_vphb_error_detected(afu, state); + /* + * Tell the AFU drivers; but we don't care what they + * say, we're going away. + */ + if (afu->phb != NULL) + cxl_vphb_error_detected(afu, state); } return PCI_ERS_RESULT_DISCONNECT; } |