diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-03-03 07:10:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-04 02:50:46 -0500 |
commit | 11d9fe68acd8213b50f3a8b5b6a4b66f623a82c3 (patch) | |
tree | 2de9c31389daf5e299eda45e0bfc01df91c86b5a /drivers/net/qlge | |
parent | eae6b58fb229bd17fea38d596020b80547e51381 (diff) |
qlge: Clean up link down processing.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-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) |