linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 14/20] lpfc 8.3.31: Reregister VPI for SLI3 after cable moved to new Saturn port
@ 2012-05-10  1:18 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2012-05-10  1:18 UTC (permalink / raw)
  To: linux-scsi

Reregister VPI for SLI3 after cable moved to new Saturn port


Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>

 ---

 lpfc_els.c |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)


diff -upNr a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
--- a/drivers/scsi/lpfc/lpfc_els.c	2012-05-07 10:01:10.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_els.c	2012-05-07 10:01:20.000000000 -0400
@@ -707,14 +707,17 @@ lpfc_cmpl_els_flogi_fabric(struct lpfc_v
 			lpfc_sli4_unreg_all_rpis(vport);
 			lpfc_mbx_unreg_vpi(vport);
 			spin_lock_irq(shost->host_lock);
-			vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
-			/*
-			* If VPI is unreged, driver need to do INIT_VPI
-			* before re-registering
-			*/
 			vport->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
 			spin_unlock_irq(shost->host_lock);
 		}
+
+		/*
+		 * For SLI3 and SLI4, the VPI needs to be reregistered in
+		 * response to this fabric parameter change event.
+		 */
+		spin_lock_irq(shost->host_lock);
+		vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
+		spin_unlock_irq(shost->host_lock);
 	} else if ((phba->sli_rev == LPFC_SLI_REV4) &&
 		!(vport->fc_flag & FC_VPORT_NEEDS_REG_VPI)) {
 			/*




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-10  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10  1:18 [PATCH 14/20] lpfc 8.3.31: Reregister VPI for SLI3 after cable moved to new Saturn port James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).