aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/icplus.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c
index d66bd8d12599..c81f136ae670 100644
--- a/drivers/net/phy/icplus.c
+++ b/drivers/net/phy/icplus.c
@@ -128,12 +128,15 @@ static int ip1001_config_init(struct phy_device *phydev)
128 if (c < 0) 128 if (c < 0)
129 return c; 129 return c;
130 130
131 /* Additional delay (2ns) used to adjust RX clock phase 131 if (phydev->interface == PHY_INTERFACE_MODE_RGMII) {
132 * at GMII/ RGMII interface */ 132 /* Additional delay (2ns) used to adjust RX clock phase
133 c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); 133 * at RGMII interface */
134 c |= IP1001_PHASE_SEL_MASK; 134 c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS);
135 c |= IP1001_PHASE_SEL_MASK;
136 c = phy_write(phydev, IP10XX_SPEC_CTRL_STATUS, c);
137 }
135 138
136 return phy_write(phydev, IP10XX_SPEC_CTRL_STATUS, c); 139 return c;
137} 140}
138 141
139static int ip101a_config_init(struct phy_device *phydev) 142static int ip101a_config_init(struct phy_device *phydev)