net: phy: dp83867: add soft reset delay [Linux 5.0]

net: phy: dp83867: add soft reset delay [Linux 5.0]

This Linux kernel change "net: phy: dp83867: add soft reset delay" is included in the Linux 5.0 release. This change is authored by Max Uvarov <muvarov [at]> on Mon Feb 25 12:15:10 2019 +0300. The commit for this change in Linux stable tree is 72a7d45 (patch).

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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/phy/dp83867.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index da6a67d..56fa360 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);

Leave a Reply

Your email address will not be published. Required fields are marked *