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

Commit 0c95a1fa authored by Lendacky, Thomas's avatar Lendacky, Thomas Committed by David S. Miller
Browse files

amd-xgbe-phy: Sync PCS and PHY modes after reset



This patch adds support to sync the states of the PCS and the PHY
after a reset is performed.  If the PCS and the PHY are not in the
same state after reset an extra mode change would be performed. This
extra mode change might not be needed if the PCS and the PHY are
synced up after reset.

Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7beaf23
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -992,7 +992,8 @@ static int amd_xgbe_phy_soft_reset(struct phy_device *phydev)
	if (ret & MDIO_CTRL1_RESET)
	if (ret & MDIO_CTRL1_RESET)
		return -ETIMEDOUT;
		return -ETIMEDOUT;


	return 0;
	/* Make sure the XPCS and SerDes are in compatible states */
	return amd_xgbe_phy_xgmii_mode(phydev);
}
}


static int amd_xgbe_phy_config_init(struct phy_device *phydev)
static int amd_xgbe_phy_config_init(struct phy_device *phydev)