Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286189
b: refs/heads/master
c: 6ab48a5
h: refs/heads/master
i:
  286187: 28f347c
v: v3
  • Loading branch information
Yaniv Rosner authored and David S. Miller committed Jan 17, 2012
1 parent 9931bbf commit 1193ecb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 096b9527db77defb2501509f2517d2ab24300d9c
refs/heads/master: 6ab48a5c86ce778188c173818cb2f1644526e962
10 changes: 9 additions & 1 deletion trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -3763,7 +3763,15 @@ static void bnx2x_warpcore_enable_AN_KR(struct bnx2x_phy *phy,
/* Advertise pause */
bnx2x_ext_phy_set_pause(params, phy, vars);

vars->rx_tx_asic_rst = MAX_KR_LINK_RETRY;
/*
* Set KR Autoneg Work-Around flag for Warpcore version older than D108
*/
bnx2x_cl45_read(bp, phy, MDIO_WC_DEVAD,
MDIO_WC_REG_UC_INFO_B1_VERSION, &val16);
if (val16 < 0xd108) {
DP(NETIF_MSG_LINK, "Enable AN KR work-around\n");
vars->rx_tx_asic_rst = MAX_KR_LINK_RETRY;
}

bnx2x_cl45_read(bp, phy, MDIO_WC_DEVAD,
MDIO_WC_REG_DIGITAL5_MISC7, &val16);
Expand Down

0 comments on commit 1193ecb

Please sign in to comment.