/* Verify that when not using auto-negotitation that MDI/MDIx is correctly set, which is forced to MDI mode only.  */
s32 igb_validate_mdi_setting(struct e1000_hw *hw)
/* Verify that when not using auto-negotitation that MDI/MDIx is correctly set, which is forced to MDI mode only.  */
s32 igb_validate_mdi_setting(struct e1000_hw *hw)
{
	s32 ret_val = 0;
	if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) {
		hw_dbg("Invalid MDI setting detected\n");
		hw->phy.mdix = 1;
		ret_val = -E1000_ERR_CONFIG;
		goto out;
	}
out:
	return ret_val;
}