Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277917
b: refs/heads/master
c: 202ff1c
h: refs/heads/master
i:
  277915: bbc8374
v: v3
  • Loading branch information
Hiroaki SHIMODA authored and David S. Miller committed Nov 22, 2011
1 parent ff4de4e commit bddc5bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3
refs/heads/master: 202ff1c26c768efeead20b388556eda265dc8352
7 changes: 3 additions & 4 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3594,7 +3594,7 @@ static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl)
u32 val, new_adv;

new_adv = ADVERTISE_CSMA;
new_adv |= ethtool_adv_to_mii_adv_t(advertise);
new_adv |= ethtool_adv_to_mii_adv_t(advertise) & ADVERTISE_ALL;
new_adv |= tg3_advert_flowctrl_1000T(flowctrl);

err = tg3_writephy(tp, MII_ADVERTISE, new_adv);
Expand Down Expand Up @@ -3778,7 +3778,7 @@ static int tg3_copper_is_advertising_all(struct tg3 *tp, u32 mask)
{
u32 adv_reg, all_mask = 0;

all_mask = ethtool_adv_to_mii_adv_t(mask);
all_mask = ethtool_adv_to_mii_adv_t(mask) & ADVERTISE_ALL;

if (tg3_readphy(tp, MII_ADVERTISE, &adv_reg))
return 0;
Expand Down Expand Up @@ -13199,8 +13199,7 @@ static u32 __devinit tg3_read_otp_phycfg(struct tg3 *tp)

static void __devinit tg3_phy_init_link_config(struct tg3 *tp)
{
u32 adv = ADVERTISED_Autoneg |
ADVERTISED_Pause;
u32 adv = ADVERTISED_Autoneg;

if (!(tp->phy_flags & TG3_PHYFLG_10_100_ONLY))
adv |= ADVERTISED_1000baseT_Half |
Expand Down

0 comments on commit bddc5bc

Please sign in to comment.