diff options
-rw-r--r-- | drivers/net/bnx2.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 506c5ccd7156..d681f3153e7c 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -4216,13 +4216,6 @@ bnx2_init_remote_phy(struct bnx2 *bp) | |||
4216 | if (netif_running(bp->dev)) { | 4216 | if (netif_running(bp->dev)) { |
4217 | u32 sig; | 4217 | u32 sig; |
4218 | 4218 | ||
4219 | if (val & BNX2_LINK_STATUS_LINK_UP) { | ||
4220 | bp->link_up = 1; | ||
4221 | netif_carrier_on(bp->dev); | ||
4222 | } else { | ||
4223 | bp->link_up = 0; | ||
4224 | netif_carrier_off(bp->dev); | ||
4225 | } | ||
4226 | sig = BNX2_DRV_ACK_CAP_SIGNATURE | | 4219 | sig = BNX2_DRV_ACK_CAP_SIGNATURE | |
4227 | BNX2_FW_CAP_REMOTE_PHY_CAPABLE; | 4220 | BNX2_FW_CAP_REMOTE_PHY_CAPABLE; |
4228 | bnx2_shmem_wr(bp, BNX2_DRV_ACK_CAP_MB, sig); | 4221 | bnx2_shmem_wr(bp, BNX2_DRV_ACK_CAP_MB, sig); |
@@ -4879,6 +4872,8 @@ bnx2_init_nic(struct bnx2 *bp) | |||
4879 | spin_lock_bh(&bp->phy_lock); | 4872 | spin_lock_bh(&bp->phy_lock); |
4880 | bnx2_init_phy(bp); | 4873 | bnx2_init_phy(bp); |
4881 | bnx2_set_link(bp); | 4874 | bnx2_set_link(bp); |
4875 | if (bp->phy_flags & BNX2_PHY_FLAG_REMOTE_PHY_CAP) | ||
4876 | bnx2_remote_phy_event(bp); | ||
4882 | spin_unlock_bh(&bp->phy_lock); | 4877 | spin_unlock_bh(&bp->phy_lock); |
4883 | return 0; | 4878 | return 0; |
4884 | } | 4879 | } |