summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMartin Fuzzey <[email protected]>2018-10-04 19:59:18 +0200
committerJoe Hershberger <[email protected]>2018-10-24 14:45:37 -0500
commit9b8b91888493d25873b835d262b89f1c4efa0df7 (patch)
treed1d2135ebeadb6263d79ec2c5e6051979e787e0a /drivers
parent30a2c8cca80ed71384e5c1ebc4e52695c3db8fff (diff)
net: dm: fec: Fix time unit error in phy-reset-duration
The DT binding says that phy-reset-duration is in ms, but the driver currently uses udelay(). Switch to mdelay() to fix this. Signed-off-by: Martin Fuzzey <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]> Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index dac07b6e34d..a1295fcdf66 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -1254,7 +1254,7 @@ static void fec_gpio_reset(struct fec_priv *priv)
debug("fec_gpio_reset: fec_gpio_reset(dev)\n");
if (dm_gpio_is_valid(&priv->phy_reset_gpio)) {
dm_gpio_set_value(&priv->phy_reset_gpio, 1);
- udelay(priv->reset_delay);
+ mdelay(priv->reset_delay);
dm_gpio_set_value(&priv->phy_reset_gpio, 0);
}
}