[OpenPower-Firmware] [PATCH] scsi: lpfc: Add shutdown method for kexec
Mauricio Faria de Oliveira
mauricfo at linux.vnet.ibm.com
Fri Mar 3 00:20:30 AEDT 2017
From: Anton Blanchard <anton at samba.org>
We see lpfc devices regularly fail during kexec. Fix this by adding
a shutdown method which mirrors the remove method.
( mfoliveira: this patch has been submitted upstream at: )
( http://www.spinics.net/lists/linux-scsi/msg105102.html )
Signed-off-by: Anton Blanchard <anton at samba.org>
Signed-off-by: Mauricio Faria de Oliveira <mauricfo at linux.vnet.ibm.com>
---
drivers/scsi/lpfc/lpfc_init.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 64717c171b15..74f2999ac4a5 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -11446,6 +11446,7 @@ struct lpfc_cq_event *
.id_table = lpfc_id_table,
.probe = lpfc_pci_probe_one,
.remove = lpfc_pci_remove_one,
+ .shutdown = lpfc_pci_remove_one,
.suspend = lpfc_pci_suspend_one,
.resume = lpfc_pci_resume_one,
.err_handler = &lpfc_err_handler,
--
1.8.3.1
More information about the OpenPower-Firmware
mailing list