Skip to contentSkip to conversation

net: phy: dp83867: add soft reset delay

PATCH Applied Max Uvarov 2 participants 2 messages Feb 25, 2019 – Feb 28, 2019

Subsystems (3)
lore
Share & tools
lore

Max Uvarov

author
#0 lore raw

PATCH 1/1 net: phy: dp83867: add soft reset delay

Similar to dp83640 delay after soft reset
is needed to set up registers correctly.

---
 drivers/net/phy/dp83867.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/dp83867.c +3 -0
index ac8ba642d616..e1ec36c51511 100644
@@ -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>
 
@@ -347,6 +348,8 @@ static int dp83867_phy_reset(struct phy_device *phydev)
 	if (err < 0)
 		return err;
 
+	usleep_range(10, 20);
+
 	return dp83867_config_init(phydev);
 }
 
Signature · 1 line
2.17.1