diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 08cddb6ff740..539d23b594ce 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -1466,6 +1466,8 @@ bnx2_enable_forced_2g5(struct bnx2 *bp) | |||
1466 | } else if (CHIP_NUM(bp) == CHIP_NUM_5708) { | 1466 | } else if (CHIP_NUM(bp) == CHIP_NUM_5708) { |
1467 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); | 1467 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); |
1468 | bmcr |= BCM5708S_BMCR_FORCE_2500; | 1468 | bmcr |= BCM5708S_BMCR_FORCE_2500; |
1469 | } else { | ||
1470 | return; | ||
1469 | } | 1471 | } |
1470 | 1472 | ||
1471 | if (bp->autoneg & AUTONEG_SPEED) { | 1473 | if (bp->autoneg & AUTONEG_SPEED) { |
@@ -1500,6 +1502,8 @@ bnx2_disable_forced_2g5(struct bnx2 *bp) | |||
1500 | } else if (CHIP_NUM(bp) == CHIP_NUM_5708) { | 1502 | } else if (CHIP_NUM(bp) == CHIP_NUM_5708) { |
1501 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); | 1503 | bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); |
1502 | bmcr &= ~BCM5708S_BMCR_FORCE_2500; | 1504 | bmcr &= ~BCM5708S_BMCR_FORCE_2500; |
1505 | } else { | ||
1506 | return; | ||
1503 | } | 1507 | } |
1504 | 1508 | ||
1505 | if (bp->autoneg & AUTONEG_SPEED) | 1509 | if (bp->autoneg & AUTONEG_SPEED) |