]> Git Repo - J-u-boot.git/commitdiff
net: dm: fec: Fix time unit error in phy-reset-duration
authorMartin Fuzzey <[email protected]>
Thu, 4 Oct 2018 17:59:18 +0000 (19:59 +0200)
committerJoe Hershberger <[email protected]>
Wed, 24 Oct 2018 19:45:37 +0000 (14:45 -0500)
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]>
drivers/net/fec_mxc.c

index dac07b6e34d24c26c8b39fcc13e631d5bd372f36..a1295fcdf6612d4078b51b2e0dfc3408d88ebfbd 100644 (file)
@@ -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);
        }
 }
This page took 0.037123 seconds and 4 git commands to generate.