]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002
authorJames Smart <james.smart@emulex.com>
Tue, 7 Apr 2015 19:07:12 +0000 (15:07 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 14:46:08 +0000 (07:46 -0700)
Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hbadisc.c

index c66088d0fd2a541c2523fc1b3049d716381acaa5..63505637a121541ad723ea9488ddcb1ce56e8b8f 100644 (file)
@@ -2243,8 +2243,7 @@ lpfc_adisc_done(struct lpfc_vport *vport)
        */
        if (vport->port_state < LPFC_VPORT_READY) {
                /* If we get here, there is nothing to ADISC */
-               if (vport->port_type == LPFC_PHYSICAL_PORT)
-                       lpfc_issue_clear_la(phba, vport);
+               lpfc_issue_clear_la(phba, vport);
                if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) {
                        vport->num_disc_nodes = 0;
                        /* go thru NPR list, issue ELS PLOGIs */
index 5452f1f4220ec50bb55f50ba1872a33302a29579..b1ad1a068782670e2a519b065789c65e3d93c9e4 100644 (file)
@@ -5070,8 +5070,7 @@ lpfc_disc_start(struct lpfc_vport *vport)
            !(vport->fc_flag & FC_PT2PT) &&
            !(vport->fc_flag & FC_RSCN_MODE) &&
            (phba->sli_rev < LPFC_SLI_REV4)) {
-               if (vport->port_type == LPFC_PHYSICAL_PORT)
-                       lpfc_issue_clear_la(phba, vport);
+               lpfc_issue_clear_la(phba, vport);
                lpfc_issue_reg_vpi(phba, vport);
                return;
        }
@@ -5082,8 +5081,7 @@ lpfc_disc_start(struct lpfc_vport *vport)
         */
        if (vport->port_state < LPFC_VPORT_READY && !clear_la_pending) {
                /* If we get here, there is nothing to ADISC */
-               if (vport->port_type == LPFC_PHYSICAL_PORT)
-                       lpfc_issue_clear_la(phba, vport);
+               lpfc_issue_clear_la(phba, vport);
 
                if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) {
                        vport->num_disc_nodes = 0;