Commit 85c0f177 authored by James Smart's avatar James Smart Committed by James Bottomley

lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002

Signed-off-by: default avatarDick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: default avatarJames Smart <james.smart@emulex.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent ed4afe74
...@@ -2243,7 +2243,6 @@ lpfc_adisc_done(struct lpfc_vport *vport) ...@@ -2243,7 +2243,6 @@ lpfc_adisc_done(struct lpfc_vport *vport)
*/ */
if (vport->port_state < LPFC_VPORT_READY) { if (vport->port_state < LPFC_VPORT_READY) {
/* If we get here, there is nothing to ADISC */ /* 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)) { if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) {
vport->num_disc_nodes = 0; vport->num_disc_nodes = 0;
......
...@@ -5070,7 +5070,6 @@ lpfc_disc_start(struct lpfc_vport *vport) ...@@ -5070,7 +5070,6 @@ lpfc_disc_start(struct lpfc_vport *vport)
!(vport->fc_flag & FC_PT2PT) && !(vport->fc_flag & FC_PT2PT) &&
!(vport->fc_flag & FC_RSCN_MODE) && !(vport->fc_flag & FC_RSCN_MODE) &&
(phba->sli_rev < LPFC_SLI_REV4)) { (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); lpfc_issue_reg_vpi(phba, vport);
return; return;
...@@ -5082,7 +5081,6 @@ lpfc_disc_start(struct lpfc_vport *vport) ...@@ -5082,7 +5081,6 @@ lpfc_disc_start(struct lpfc_vport *vport)
*/ */
if (vport->port_state < LPFC_VPORT_READY && !clear_la_pending) { if (vport->port_state < LPFC_VPORT_READY && !clear_la_pending) {
/* If we get here, there is nothing to ADISC */ /* 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)) { if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) {
......
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