diff options
author | Max Uvarov <muvarov@gmail.com> | 2019-02-25 10:15:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-28 06:25:45 +0100 |
commit | 72a7d452b0f09dcd5d3e18cff1e3839f8b1acc1f (patch) | |
tree | 5c57d52b25cefa67ec956f3855a9bb1b3cf8f5b1 /drivers/net/phy/dp83867.c | |
parent | net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails (diff) | |
download | linux-72a7d452b0f09dcd5d3e18cff1e3839f8b1acc1f.tar.xz linux-72a7d452b0f09dcd5d3e18cff1e3839f8b1acc1f.zip |
net: phy: dp83867: add soft reset delay
Similar to dp83640 delay after soft reset
is needed to set up registers correctly.
Signed-off-by: Max Uvarov <muvarov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/dp83867.c')
-rw-r--r-- | drivers/net/phy/dp83867.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index da6a67d47ce9..56fa3606cb9c 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -19,6 +19,7 @@ #include <linux/module.h> #include <linux/of.h> #include <linux/phy.h> +#include <linux/delay.h> #include <dt-bindings/net/ti-dp83867.h> @@ -325,6 +326,8 @@ static int dp83867_phy_reset(struct phy_device *phydev) if (err < 0) return err; + usleep_range(10, 20); + return dp83867_config_init(phydev); } |