Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214345
b: refs/heads/master
c: 7f02c4a
h: refs/heads/master
i:
  214343: 8cc4100
v: v3
  • Loading branch information
Yaniv Rosner authored and David S. Miller committed Sep 7, 2010
1 parent 231ad0e commit 51cf8a0
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 47 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: a22f078867ef362e35c54055878168e6613ff743
refs/heads/master: 7f02c4ad2182ee7820edecbaf6c510728ee8bbb3
9 changes: 5 additions & 4 deletions trunk/drivers/net/bnx2x/bnx2x_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,18 +1954,19 @@ static int bnx2x_phys_id(struct net_device *dev, u32 data)

for (i = 0; i < (data * 2); i++) {
if ((i % 2) == 0)
bnx2x_set_led(&bp->link_params, LED_MODE_OPER,
SPEED_1000);
bnx2x_set_led(&bp->link_params, &bp->link_vars,
LED_MODE_OPER, SPEED_1000);
else
bnx2x_set_led(&bp->link_params, LED_MODE_OFF, 0);
bnx2x_set_led(&bp->link_params, &bp->link_vars,
LED_MODE_OFF, 0);

msleep_interruptible(500);
if (signal_pending(current))
break;
}

if (bp->link_vars.link_up)
bnx2x_set_led(&bp->link_params, LED_MODE_OPER,
bnx2x_set_led(&bp->link_params, &bp->link_vars, LED_MODE_OPER,
bp->link_vars.line_speed);

return 0;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x_hsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ struct shared_hw_cfg { /* NVRAM Offset */
#define SHARED_HW_CFG_LED_PHY11 0x000b0000
#define SHARED_HW_CFG_LED_MAC4 0x000c0000
#define SHARED_HW_CFG_LED_PHY8 0x000d0000
#define SHARED_HW_CFG_LED_EXTPHY1 0x000e0000


#define SHARED_HW_CFG_AN_ENABLE_MASK 0x3f000000
#define SHARED_HW_CFG_AN_ENABLE_SHIFT 24
Expand Down
Loading

0 comments on commit 51cf8a0

Please sign in to comment.