Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ab6c163 authored by Yaniv Rosner's avatar Yaniv Rosner Committed by David S. Miller
Browse files

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: default avatarKrzysztof Oldzki <ole@ans.pl>
Signed-off-by: default avatarYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6cc1d64
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -4266,14 +4266,16 @@ static u8 bnx2x_ext_phy_init(struct link_params *params, struct link_vars *vars)
					       MDIO_PMA_REG_10G_CTRL2, 0x0008);
					       MDIO_PMA_REG_10G_CTRL2, 0x0008);
			}
			}


			/* Set 2-wire transfer rate to 400Khz since 100Khz
			/* Set 2-wire transfer rate of SFP+ module EEPROM
			is not operational */
			 * to 100Khz since some DACs(direct attached cables) do
			 * not work at 400Khz.
			 */
			bnx2x_cl45_write(bp, params->port,
			bnx2x_cl45_write(bp, params->port,
				       ext_phy_type,
				       ext_phy_type,
				       ext_phy_addr,
				       ext_phy_addr,
				       MDIO_PMA_DEVAD,
				       MDIO_PMA_DEVAD,
				       MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR,
				       MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR,
				       0xa101);
				       0xa001);


			/* Set TX PreEmphasis if needed */
			/* Set TX PreEmphasis if needed */
			if ((params->feature_config_flags &
			if ((params->feature_config_flags &