Commit 5700abe9 authored by Ron Mercer's avatar Ron Mercer Committed by David S. Miller

qlge: Clean up link up processing.

Signed-off-by: default avatarRon Mercer <ron.mercer@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 11d9fe68
...@@ -159,24 +159,23 @@ static int ql_idc_cmplt_aen(struct ql_adapter *qdev) ...@@ -159,24 +159,23 @@ static int ql_idc_cmplt_aen(struct ql_adapter *qdev)
return status; return status;
} }
static void ql_link_up(struct ql_adapter *qdev, struct mbox_params *mbcp) static void ql_link_up(struct ql_adapter *qdev, struct mbox_params *mbcp)
{ {
int status;
mbcp->out_count = 2; mbcp->out_count = 2;
if (ql_get_mb_sts(qdev, mbcp)) status = ql_get_mb_sts(qdev, mbcp);
goto exit; if (status) {
QPRINTK(qdev, DRV, ERR,
"%s: Could not get mailbox status.\n", __func__);
return;
}
qdev->link_status = mbcp->mbox_out[1]; qdev->link_status = mbcp->mbox_out[1];
QPRINTK(qdev, DRV, ERR, "Link Up.\n"); QPRINTK(qdev, DRV, ERR, "Link Up.\n");
QPRINTK(qdev, DRV, INFO, "Link Status = 0x%.08x.\n", mbcp->mbox_out[1]);
if (!netif_carrier_ok(qdev->ndev)) { netif_carrier_on(qdev->ndev);
QPRINTK(qdev, LINK, INFO, "Link is Up.\n");
netif_carrier_on(qdev->ndev);
netif_wake_queue(qdev->ndev);
}
exit:
/* Clear the MPI firmware status. */
ql_write32(qdev, CSR, CSR_CMD_CLR_R2PCI_INT);
} }
static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp) static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp)
......
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