diff options
-rw-r--r-- | drivers/net/qlge/qlge_mpi.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/net/qlge/qlge_mpi.c b/drivers/net/qlge/qlge_mpi.c index ebb7b0c48dea..5871bc967d88 100644 --- a/drivers/net/qlge/qlge_mpi.c +++ b/drivers/net/qlge/qlge_mpi.c | |||
@@ -181,23 +181,15 @@ exit: | |||
181 | 181 | ||
182 | static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp) | 182 | static void ql_link_down(struct ql_adapter *qdev, struct mbox_params *mbcp) |
183 | { | 183 | { |
184 | int status; | ||
185 | |||
184 | mbcp->out_count = 3; | 186 | mbcp->out_count = 3; |
185 | 187 | ||
186 | if (ql_get_mb_sts(qdev, mbcp)) { | 188 | status = ql_get_mb_sts(qdev, mbcp); |
187 | QPRINTK(qdev, DRV, ERR, "Firmware did not initialize!\n"); | 189 | if (status) |
188 | goto exit; | 190 | QPRINTK(qdev, DRV, ERR, "Link down AEN broken!\n"); |
189 | } | ||
190 | 191 | ||
191 | if (netif_carrier_ok(qdev->ndev)) { | 192 | netif_carrier_off(qdev->ndev); |
192 | QPRINTK(qdev, LINK, INFO, "Link is Down.\n"); | ||
193 | netif_carrier_off(qdev->ndev); | ||
194 | netif_stop_queue(qdev->ndev); | ||
195 | } | ||
196 | QPRINTK(qdev, DRV, ERR, "Link Down.\n"); | ||
197 | QPRINTK(qdev, DRV, ERR, "Link Status = 0x%.08x.\n", mbcp->mbox_out[1]); | ||
198 | exit: | ||
199 | /* Clear the MPI firmware status. */ | ||
200 | ql_write32(qdev, CSR, CSR_CMD_CLR_R2PCI_INT); | ||
201 | } | 193 | } |
202 | 194 | ||
203 | static int ql_sfp_in(struct ql_adapter *qdev, struct mbox_params *mbcp) | 195 | static int ql_sfp_in(struct ql_adapter *qdev, struct mbox_params *mbcp) |