summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <james.smart@broadcom.com>2016-07-06 21:36:01 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2016-07-15 21:25:06 +0200
commit4597663fabf16645e2af8f02b9d7ba66110588b6 (patch)
treeab116c9bec8b665f00df62fe6796a582e13597ac
parentlpfc: Add MDS Diagnostics Support (diff)
downloadlinux-4597663fabf16645e2af8f02b9d7ba66110588b6.tar.xz
linux-4597663fabf16645e2af8f02b9d7ba66110588b6.zip
lpfc: Fix SLI mode 2 config failure
Fix SLI mode 2 config failure Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 6eef9720e5c9..b1ddbaac1c79 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -4696,6 +4696,8 @@ lpfc_sli_hba_setup(struct lpfc_hba *phba)
"Not supported by adapter.\n");
if (rc && mode != 2)
rc = lpfc_sli_config_port(phba, 2);
+ else if (rc && mode == 2)
+ rc = lpfc_sli_config_port(phba, 3);
if (rc)
goto lpfc_sli_hba_setup_error;