linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 17/21] lpfc 8.3.30: Fix handling of REG_VFI and cable pull.
@ 2012-03-02  3:37 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2012-03-02  3:37 UTC (permalink / raw)
  To: linux-scsi

Fix bug with mailbox handling of REG_VFI and cable pull.


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

 ---

 lpfc_hbadisc.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


diff -upNr a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c	2012-03-01 17:33:47.000000000 -0500
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c	2012-03-01 17:33:53.000000000 -0500
@@ -2843,7 +2843,14 @@ lpfc_mbx_cmpl_reg_vfi(struct lpfc_hba *p
 	struct lpfc_vport *vport = mboxq->vport;
 	struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
 
-	if (mboxq->u.mb.mbxStatus) {
+	/*
+	 * VFI not supported for interface type 0, so ignore any mailbox
+	 * error (except VFI in use) and continue with the discovery.
+	 */
+	if (mboxq->u.mb.mbxStatus &&
+	    (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) !=
+			LPFC_SLI_INTF_IF_TYPE_0) &&
+	    mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) {
 		lpfc_printf_vlog(vport, KERN_ERR, LOG_MBOX,
 			 "2018 REG_VFI mbxStatus error x%x "
 			 "HBA state x%x\n",




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

only message in thread, other threads:[~2012-03-02  3:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02  3:37 [PATCH 17/21] lpfc 8.3.30: Fix handling of REG_VFI and cable pull 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).