Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130123
b: refs/heads/master
c: 44722d1
h: refs/heads/master
i:
  130121: 78c24f4
  130119: 457e547
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jan 20, 2009
1 parent d330614 commit 0b898cf
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 3858276b7198074bf3570470463808627f0c9e31
refs/heads/master: 44722d1d216c9dd4536de5f88fe8320b07e68a96
10 changes: 8 additions & 2 deletions trunk/drivers/net/bnx2x_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -3882,9 +3882,15 @@ static u8 bnx2x_link_initialize(struct link_params *params,
}

if (vars->phy_flags & PHY_XGXS_FLAG) {
if (params->req_line_speed &&
if ((params->req_line_speed &&
((params->req_line_speed == SPEED_100) ||
(params->req_line_speed == SPEED_10))) {
(params->req_line_speed == SPEED_10))) ||
(!params->req_line_speed &&
(params->speed_cap_mask >=
PORT_HW_CFG_SPEED_CAPABILITY_D0_10M_FULL) &&
(params->speed_cap_mask <
PORT_HW_CFG_SPEED_CAPABILITY_D0_1G)
)) {
vars->phy_flags |= PHY_SGMII_FLAG;
} else {
vars->phy_flags &= ~PHY_SGMII_FLAG;
Expand Down

0 comments on commit 0b898cf

Please sign in to comment.