mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 06:44:23 +08:00
bnx2x: Fix link-forcing for KR2
Currently, when link is using KR2 it cannot be forced to any speed other than 20g. Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.om> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9ca69b7054
commit
1e411f0138
@ -13807,8 +13807,10 @@ void bnx2x_period_func(struct link_params *params, struct link_vars *vars)
|
|||||||
if (CHIP_IS_E3(bp)) {
|
if (CHIP_IS_E3(bp)) {
|
||||||
struct bnx2x_phy *phy = ¶ms->phy[INT_PHY];
|
struct bnx2x_phy *phy = ¶ms->phy[INT_PHY];
|
||||||
bnx2x_set_aer_mmd(params, phy);
|
bnx2x_set_aer_mmd(params, phy);
|
||||||
if ((phy->supported & SUPPORTED_20000baseKR2_Full) &&
|
if (((phy->req_line_speed == SPEED_AUTO_NEG) &&
|
||||||
(phy->speed_cap_mask & PORT_HW_CFG_SPEED_CAPABILITY_D0_20G))
|
(phy->speed_cap_mask &
|
||||||
|
PORT_HW_CFG_SPEED_CAPABILITY_D0_20G)) ||
|
||||||
|
(phy->req_line_speed == SPEED_20000))
|
||||||
bnx2x_check_kr2_wa(params, vars, phy);
|
bnx2x_check_kr2_wa(params, vars, phy);
|
||||||
bnx2x_check_over_curr(params, vars);
|
bnx2x_check_over_curr(params, vars);
|
||||||
if (vars->rx_tx_asic_rst)
|
if (vars->rx_tx_asic_rst)
|
||||||
|
Loading…
Reference in New Issue
Block a user