Commit 4597663f authored by James Smart's avatar James Smart Committed by Martin K. Petersen

lpfc: Fix SLI mode 2 config failure

Fix SLI mode 2 config failure
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7bdedb34
...@@ -4696,6 +4696,8 @@ lpfc_sli_hba_setup(struct lpfc_hba *phba) ...@@ -4696,6 +4696,8 @@ lpfc_sli_hba_setup(struct lpfc_hba *phba)
"Not supported by adapter.\n"); "Not supported by adapter.\n");
if (rc && mode != 2) if (rc && mode != 2)
rc = lpfc_sli_config_port(phba, 2); rc = lpfc_sli_config_port(phba, 2);
else if (rc && mode == 2)
rc = lpfc_sli_config_port(phba, 3);
if (rc) if (rc)
goto lpfc_sli_hba_setup_error; goto lpfc_sli_hba_setup_error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment