/* Sets up Carrier-sense on Transmit and downshift values.  */
s32 e1000_copper_link_setup_82577(struct e1000_hw *hw)
/* Sets up Carrier-sense on Transmit and downshift values.  */
s32 e1000_copper_link_setup_82577(struct e1000_hw *hw)
{
	struct e1000_phy_info *phy = &hw->phy;
	s32 ret_val;
	u16 phy_data;
	ret_val = phy->ops.read_reg(hw, I82577_CFG_REG, &phy_data);
	if (ret_val)
		goto out;
	phy_data |= I82577_CFG_ASSERT_CRS_ON_TX;
	phy_data |= I82577_CFG_ENABLE_DOWNSHIFT;
	ret_val = phy->ops.write_reg(hw, I82577_CFG_REG, phy_data);
out:
	return ret_val;
}