]> git.sur5r.net Git - u-boot/commitdiff
net: phy: marvell: Do not reset 88e1310 after autoneg
authorNathan Rossi <nathan@nathanrossi.com>
Fri, 3 Jun 2016 13:16:17 +0000 (23:16 +1000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 21 Jun 2016 22:01:52 +0000 (17:01 -0500)
Commit a058052c "net: phy: do not read configuration register on reset",
changes the behaviour of the phy_reset function such that the state of
the BMCR register is not preserved during reset.

Change the config function for the m88e1310 so that it does not do a
reset after configuring auto-negotiation.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/net/phy/marvell.c

index d2e68d492a676a93fabd4eb410fcd09de99eee10..58d287bb071eed5ce1af2ce037625b17fbc183d6 100644 (file)
@@ -476,10 +476,7 @@ static int m88e1310_config(struct phy_device *phydev)
        /* Ensure to return to page 0 */
        phy_write(phydev, MDIO_DEVAD_NONE, MIIM_88E1310_PHY_PAGE, 0x0000);
 
-       genphy_config_aneg(phydev);
-       phy_reset(phydev);
-
-       return 0;
+       return genphy_config_aneg(phydev);
 }
 
 static struct phy_driver M88E1011S_driver = {