mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
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 <martin.fuzzey@flowbird.group> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
30a2c8cca8
commit
9b8b918884
@ -1254,7 +1254,7 @@ static void fec_gpio_reset(struct fec_priv *priv)
|
|||||||
debug("fec_gpio_reset: fec_gpio_reset(dev)\n");
|
debug("fec_gpio_reset: fec_gpio_reset(dev)\n");
|
||||||
if (dm_gpio_is_valid(&priv->phy_reset_gpio)) {
|
if (dm_gpio_is_valid(&priv->phy_reset_gpio)) {
|
||||||
dm_gpio_set_value(&priv->phy_reset_gpio, 1);
|
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);
|
dm_gpio_set_value(&priv->phy_reset_gpio, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user