lpfc: Fix SLI mode 2 config failure
authorJames Smart <james.smart@broadcom.com>
Wed, 6 Jul 2016 19:36:01 +0000 (12:36 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Jul 2016 19:25:06 +0000 (15:25 -0400)
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>
drivers/scsi/lpfc/lpfc_sli.c

index 6eef9720e5c96365f0150cd2d489b77acaa10340..b1ddbaac1c791a6300b4dcf07c799d72e41bba64 100644 (file)
@@ -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;