diff options
Diffstat (limited to 'drivers/net/qlge/qlge_mpi.c')
-rw-r--r-- | drivers/net/qlge/qlge_mpi.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/net/qlge/qlge_mpi.c b/drivers/net/qlge/qlge_mpi.c index 5871bc967d8..3b4b494387a 100644 --- a/drivers/net/qlge/qlge_mpi.c +++ b/drivers/net/qlge/qlge_mpi.c | |||
@@ -159,24 +159,23 @@ static int ql_idc_cmplt_aen(struct ql_adapter *qdev) | |||
159 | 159 | ||
160 | return status; | 160 | return status; |
161 | } | 161 | } |
162 | |||
162 | static void ql_link_up(struct ql_adapter *qdev, struct mbox_params *mbcp) | 163 | static void ql_link_up(struct ql_adapter *qdev, struct mbox_params *mbcp) |
163 | { | 164 | { |
165 | int status; | ||
164 | mbcp->out_count = 2; | 166 | mbcp->out_count = 2; |
165 | 167 | ||
166 | if (ql_get_mb_sts(qdev, mbcp)) | 168 | status = ql_get_mb_sts(qdev, mbcp); |
167 | goto exit; | 169 | if (status) { |
170 | QPRINTK(qdev, DRV, ERR, | ||
171 | "%s: Could not get mailbox status.\n", __func__); | ||
172 | return; | ||
173 | } | ||
168 | 174 | ||
169 | qdev->link_status = mbcp->mbox_out[1]; | 175 | qdev->link_status = mbcp->mbox_out[1]; |
170 | QPRINTK(qdev, DRV, ERR, "Link Up.\n"); | 176 | QPRINTK(qdev, DRV, ERR, "Link Up.\n"); |
171 | QPRINTK(qdev, DRV, INFO, "Link Status = 0x%.08x.\n", mbcp->mbox_out[1]); | 177 | |
172 | if (!netif_carrier_ok(qdev->ndev)) { | 178 | netif_carrier_on(qdev->ndev); |
173 | QPRINTK(qdev, LINK, INFO, "Link is Up.\n"); | ||
174 | netif_carrier_on(qdev->ndev); | ||
175 | netif_wake_queue(qdev->ndev); | ||
176 | } | ||
177 | exit: | ||
178 | /* Clear the MPI firmware status. */ | ||
179 | ql_write32(qdev, CSR, CSR_CMD_CLR_R2PCI_INT); | ||
180 | } | 179 | } |
181 | 180 | ||
182 | static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp) | 181 | static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp) |