Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278797
b: refs/heads/master
c: 4f27209
h: refs/heads/master
i:
  278795: c5a23fd
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Dec 15, 2011
1 parent a7ff060 commit 9d984f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c48e074c7c75c0de4652ea5f5bf4e74c8cf4e3dd
refs/heads/master: 4f272096054b6154e31e850f192eef5782f156c6
19 changes: 9 additions & 10 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3595,18 +3595,17 @@ static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl)
if (err)
goto done;

if (tp->phy_flags & TG3_PHYFLG_10_100_ONLY)
goto done;

new_adv = ethtool_adv_to_mii_ctrl1000_t(advertise);
if (!(tp->phy_flags & TG3_PHYFLG_10_100_ONLY)) {
new_adv = ethtool_adv_to_mii_ctrl1000_t(advertise);

if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tp->pci_chip_rev_id == CHIPREV_ID_5701_B0)
new_adv |= CTL1000_AS_MASTER | CTL1000_ENABLE_MASTER;
if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tp->pci_chip_rev_id == CHIPREV_ID_5701_B0)
new_adv |= CTL1000_AS_MASTER | CTL1000_ENABLE_MASTER;

err = tg3_writephy(tp, MII_CTRL1000, new_adv);
if (err)
goto done;
err = tg3_writephy(tp, MII_CTRL1000, new_adv);
if (err)
goto done;
}

if (!(tp->phy_flags & TG3_PHYFLG_EEE_CAP))
goto done;
Expand Down

0 comments on commit 9d984f5

Please sign in to comment.