diff options
author | Yaniv Rosner <yanivr@broadcom.com> | 2010-06-15 02:25:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 02:25:19 -0400 |
commit | 1ab6c163dee279559e3a62d774af7e4c4c9b4c67 (patch) | |
tree | e0e53b37ebece752bb6c0eded82c6c493d990155 /drivers/net/bnx2x_link.c | |
parent | d6cc1d642de9284cb26488ea390d915b50ee2504 (diff) |
bnx2x: Fix link problem with some DACs
Change 2wire transfer rate of SFP+ module EEPROM from 400Khz to 100Khz
since some DACs(direct attached cables) do not work at 400Khz.
Reported-by: Krzysztof Oldzki <ole@ans.pl>
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/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index ff70be898765..0383e3066313 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -4266,14 +4266,16 @@ static u8 bnx2x_ext_phy_init(struct link_params *params, struct link_vars *vars) | |||
4266 | MDIO_PMA_REG_10G_CTRL2, 0x0008); | 4266 | MDIO_PMA_REG_10G_CTRL2, 0x0008); |
4267 | } | 4267 | } |
4268 | 4268 | ||
4269 | /* Set 2-wire transfer rate to 400Khz since 100Khz | 4269 | /* Set 2-wire transfer rate of SFP+ module EEPROM |
4270 | is not operational */ | 4270 | * to 100Khz since some DACs(direct attached cables) do |
4271 | * not work at 400Khz. | ||
4272 | */ | ||
4271 | bnx2x_cl45_write(bp, params->port, | 4273 | bnx2x_cl45_write(bp, params->port, |
4272 | ext_phy_type, | 4274 | ext_phy_type, |
4273 | ext_phy_addr, | 4275 | ext_phy_addr, |
4274 | MDIO_PMA_DEVAD, | 4276 | MDIO_PMA_DEVAD, |
4275 | MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR, | 4277 | MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR, |
4276 | 0xa101); | 4278 | 0xa001); |
4277 | 4279 | ||
4278 | /* Set TX PreEmphasis if needed */ | 4280 | /* Set TX PreEmphasis if needed */ |
4279 | if ((params->feature_config_flags & | 4281 | if ((params->feature_config_flags & |