To eliminate any doubts about the out-of-reset value of the PHY, that
the driver previously relied on.

Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com>
---
Changes in v3:
 * Patch added in this version.

 drivers/net/phy/atheros.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index 72e7fac..02aa61f 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -82,10 +82,14 @@ static int ar8031_config(struct phy_device *phydev)
        if (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID ||
            phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
                ar803x_enable_tx_delay(phydev, true);
+       else
+               ar803x_enable_tx_delay(phydev, false);
 
        if (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID ||
            phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
                ar803x_enable_rx_delay(phydev, true);
+       else
+               ar803x_enable_rx_delay(phydev, false);
 
        phydev->supported = phydev->drv->features;
 
@@ -113,10 +117,14 @@ static int ar8035_config(struct phy_device *phydev)
        if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
            (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID))
                ar803x_enable_tx_delay(phydev, true);
+       else
+               ar803x_enable_tx_delay(phydev, false);
 
        if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
            (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID))
                ar803x_enable_rx_delay(phydev, true);
+       else
+               ar803x_enable_rx_delay(phydev, false);
 
        phydev->supported = phydev->drv->features;
 
-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to