diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2016-02-21 08:07:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-21 22:50:54 -0500 |
commit | 1e411f0138a1b05e805e2043f73f546dba651e27 (patch) | |
tree | ddad11161428a00296aa6a340ab6d70e7f764d52 | |
parent | 9ca69b705486a6fd5c3ecf0558b2203c376ec048 (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c index d946bba43726..a529905a5f26 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | |||
@@ -13807,8 +13807,10 @@ void bnx2x_period_func(struct link_params *params, struct link_vars *vars) | |||
13807 | if (CHIP_IS_E3(bp)) { | 13807 | if (CHIP_IS_E3(bp)) { |
13808 | struct bnx2x_phy *phy = ¶ms->phy[INT_PHY]; | 13808 | struct bnx2x_phy *phy = ¶ms->phy[INT_PHY]; |
13809 | bnx2x_set_aer_mmd(params, phy); | 13809 | bnx2x_set_aer_mmd(params, phy); |
13810 | if ((phy->supported & SUPPORTED_20000baseKR2_Full) && | 13810 | if (((phy->req_line_speed == SPEED_AUTO_NEG) && |
13811 | (phy->speed_cap_mask & PORT_HW_CFG_SPEED_CAPABILITY_D0_20G)) | 13811 | (phy->speed_cap_mask & |
13812 | PORT_HW_CFG_SPEED_CAPABILITY_D0_20G)) || | ||
13813 | (phy->req_line_speed == SPEED_20000)) | ||
13812 | bnx2x_check_kr2_wa(params, vars, phy); | 13814 | bnx2x_check_kr2_wa(params, vars, phy); |
13813 | bnx2x_check_over_curr(params, vars); | 13815 | bnx2x_check_over_curr(params, vars); |
13814 | if (vars->rx_tx_asic_rst) | 13816 | if (vars->rx_tx_asic_rst) |