diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-01-14 07:44:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 01:20:12 +0100 |
commit | 44722d1d216c9dd4536de5f88fe8320b07e68a96 (patch) | |
tree | d3b277c2e3481cd9c9417758625681ebf17d654b /drivers/net/bnx2x_link.c | |
parent | bnx2x: Prevent self test loopback failures (diff) | |
download | linux-44722d1d216c9dd4536de5f88fe8320b07e68a96.tar.xz linux-44722d1d216c9dd4536de5f88fe8320b07e68a96.zip |
bnx2x: Legacy speeds autoneg failures
10M/100M autoneg was not establishing link.
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index 4ce107c125d1..2fd6be0cca13 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c @@ -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; |