+int hbg_reset_phy(struct hbg_priv *priv)A MAC driver should not be doing a soft reset on a PHY. For some
+{
+ struct phy_device *phydev = priv->mac.phydev;
+
+ if (phydev->drv->soft_reset)
+ return phydev->drv->soft_reset(phydev);
+
+ return genphy_soft_reset(phydev);
+}
devices, this clears out all the settings. I would suggest you use
phy_stop(), phy_start() which are functions a MAC driver is allowed to
use.
Andrew