diff options
author | Yaniv Rosner <yanivr@broadcom.com> | 2012-01-16 21:33:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-17 10:44:43 -0500 |
commit | 6ab48a5c86ce778188c173818cb2f1644526e962 (patch) | |
tree | 8314fc3ad439337e655a675cd01ab0aec9efba75 /drivers/net | |
parent | 096b9527db77defb2501509f2517d2ab24300d9c (diff) |
bnx2x: Disable AN KR work-around for BCM57810
Disable the work-around for the autoneg KR of the BCM57810 in case the Warpcore version is 0xD108 and above, which fixes this problem.
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')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c index a6c48d61081a..2091e5dbbcdd 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | |||
@@ -3763,7 +3763,15 @@ static void bnx2x_warpcore_enable_AN_KR(struct bnx2x_phy *phy, | |||
3763 | /* Advertise pause */ | 3763 | /* Advertise pause */ |
3764 | bnx2x_ext_phy_set_pause(params, phy, vars); | 3764 | bnx2x_ext_phy_set_pause(params, phy, vars); |
3765 | 3765 | ||
3766 | vars->rx_tx_asic_rst = MAX_KR_LINK_RETRY; | 3766 | /* |
3767 | * Set KR Autoneg Work-Around flag for Warpcore version older than D108 | ||
3768 | */ | ||
3769 | bnx2x_cl45_read(bp, phy, MDIO_WC_DEVAD, | ||
3770 | MDIO_WC_REG_UC_INFO_B1_VERSION, &val16); | ||
3771 | if (val16 < 0xd108) { | ||
3772 | DP(NETIF_MSG_LINK, "Enable AN KR work-around\n"); | ||
3773 | vars->rx_tx_asic_rst = MAX_KR_LINK_RETRY; | ||
3774 | } | ||
3767 | 3775 | ||
3768 | bnx2x_cl45_read(bp, phy, MDIO_WC_DEVAD, | 3776 | bnx2x_cl45_read(bp, phy, MDIO_WC_DEVAD, |
3769 | MDIO_WC_REG_DIGITAL5_MISC7, &val16); | 3777 | MDIO_WC_REG_DIGITAL5_MISC7, &val16); |