net: phy: dp83867: do not call config_init twice
authorMax Uvarov <muvarov@gmail.com>
Tue, 28 May 2019 10:00:51 +0000 (13:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 21:28:48 +0000 (14:28 -0700)
Phy state machine calls _config_init just after
reset.

Signed-off-by: Max Uvarov <muvarov@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c

index 14e9e8a946396aa4b7a2a1549a95461f47c80817..1ec48ecf4133fb77c7e7d8390f104f93736a56ec 100644 (file)
@@ -342,7 +342,7 @@ static int dp83867_phy_reset(struct phy_device *phydev)
 
        usleep_range(10, 20);
 
-       return dp83867_config_init(phydev);
+       return 0;
 }
 
 static struct phy_driver dp83867_driver[] = {