提交 44722d1d 编写于 作者: E Eilon Greenstein 提交者: David S. Miller

bnx2x: Legacy speeds autoneg failures

10M/100M autoneg was not establishing link.
Signed-off-by: NYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: NEilon Greenstein <eilong@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3858276b
...@@ -3882,9 +3882,15 @@ static u8 bnx2x_link_initialize(struct link_params *params, ...@@ -3882,9 +3882,15 @@ static u8 bnx2x_link_initialize(struct link_params *params,
} }
if (vars->phy_flags & PHY_XGXS_FLAG) { 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_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; vars->phy_flags |= PHY_SGMII_FLAG;
} else { } else {
vars->phy_flags &= ~PHY_SGMII_FLAG; vars->phy_flags &= ~PHY_SGMII_FLAG;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册