blob: f4600c27c59bb20827084a6d65e1bc9e6568436c [file] [log] [blame]
Joel Stanley8d5acef2017-03-15 16:24:09 +10301From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Anton Blanchard <anton@samba.org>
3Date: Thu, 2 Mar 2017 10:20:30 -0300
4Subject: [PATCH 11/12] scsi: lpfc: Add shutdown method for kexec
5
6We see lpfc devices regularly fail during kexec. Fix this by adding
7a shutdown method which mirrors the remove method.
8
9( mfoliveira: this patch has been submitted upstream at: )
10( http://www.spinics.net/lists/linux-scsi/msg105102.html )
11
12Signed-off-by: Anton Blanchard <anton@samba.org>
13Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
14Signed-off-by: Joel Stanley <joel@jms.id.au>
15---
16 drivers/scsi/lpfc/lpfc_init.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
20index 4776fd85514f..10f75ad2b9e8 100644
21--- a/drivers/scsi/lpfc/lpfc_init.c
22+++ b/drivers/scsi/lpfc/lpfc_init.c
23@@ -11447,6 +11447,7 @@ static struct pci_driver lpfc_driver = {
24 .id_table = lpfc_id_table,
25 .probe = lpfc_pci_probe_one,
26 .remove = lpfc_pci_remove_one,
27+ .shutdown = lpfc_pci_remove_one,
28 .suspend = lpfc_pci_suspend_one,
29 .resume = lpfc_pci_resume_one,
30 .err_handler = &lpfc_err_handler,
31--
322.11.0
33