Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265753
b: refs/heads/master
c: b99d2a5
h: refs/heads/master
i:
  265751: 7ecc83b
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Sep 15, 2011
1 parent c39331c commit 38fda9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: aaba215ca0b4232824c92b830853f465f16a6672
refs/heads/master: b99d2a57b7d9e9e64e9193d70696b77ed035c311
6 changes: 4 additions & 2 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3334,8 +3334,9 @@ static int tg3_copper_is_advertising_all(struct tg3 *tp, u32 mask)
if (tg3_readphy(tp, MII_ADVERTISE, &adv_reg))
return 0;

if ((adv_reg & all_mask) != all_mask)
if ((adv_reg & ADVERTISE_ALL) != all_mask)
return 0;

if (!(tp->phy_flags & TG3_PHYFLG_10_100_ONLY)) {
u32 tg3_ctrl;

Expand All @@ -3348,7 +3349,8 @@ static int tg3_copper_is_advertising_all(struct tg3 *tp, u32 mask)
if (tg3_readphy(tp, MII_CTRL1000, &tg3_ctrl))
return 0;

if ((tg3_ctrl & all_mask) != all_mask)
tg3_ctrl &= (ADVERTISE_1000HALF | ADVERTISE_1000FULL);
if (tg3_ctrl != all_mask)
return 0;
}
return 1;
Expand Down

0 comments on commit 38fda9c

Please sign in to comment.